Look at

1 m/ y

and

m/. y

as in

   +:`-:`*:/. 1 2 3 4
2
1
9
8

Note that the operand to each gerund is a list of length 1,
so you may end up with an extra axis in the result.

Henry Rich 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Piet de Jong
> Sent: Wednesday, September 13, 2006 6:10 PM
> To: [email protected]
> Subject: [Jprogramming] Selecting a verb depending on item
> 
> Having a block about this simple problem
> 
> Suppose two verbs v0 and v1 and a list m
> Want to apply v0 to first item of m , v1 to second item of  m
> How is this done?  Something like
> 
> v0`v1 @. s   m       
> 
> What should the verb s be?  More generally m will have many items and
> the gerund many verbs.
> 
> 
> 
> ----------------------------------------------------------------------
> For information about J forums see 
> http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to