On Fri, Sep 16, 2011 at 7:19 AM, David Vaughan
<[email protected]> wrote:
> Thanks. My only problem is that I need to apply the verb like x f y. The list 
> is in the form
>
> x y
> x y
> x y
>
> So is there a way I can apply f monadically in some sort of tacit way or do I 
> need use some sort of combination of {. {: and \ (which escapes me) in order 
> to apply the verb correctly?

If x and y are numbers
   x f y
is equivalent to
   f/x,y

So  you can do:
   f/"1 data
or
   f/ |: data

Thus, for example:

   (+ 1000&*)/|:($ #: I.@,)>/~i.24
1 2 1002 3 1003 2003 4 1004 2004 3004 5 ...

FYI,

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

Reply via email to