Henry Rich wrote:
> To get what you want, you can write
> p1 =: verb : 'p: i. (p:^:_1) y'
> or
>  p1 =: p: @: i. @: (p:^:_1)
> ... or
>  p1 =: i.&.(p:^:_1)

or   (13 :'p: i. p:^:_1 y')
which will give you
     ([: p: [: i. p:^:_1)
 
Read up on : for more detail on verb : and
13 :
 
To understand [: read up on forks and [:
(but, basically, [: in a fork means that
the verb to its immediate right is meant
to be a verb which takes only one argument
even though it's in an "even" position when
counting from the right).
 
-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to