> 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?
e.g.

f=.+*:

    f/"1;(,.i.)&.>1+i.5
1 2 3 3 4 7 4 5 8 13 5 6 9 14 21


all in one

    3 :'f/"1;(,.i.)&.>1+i.y' 5
1 2 3 3 4 7 4 5 8 13 5 6 9 14 21

asking for a tacit verb:

    13 :'f/"1;(,.i.)&.>1+i.y'
[: f/"1 [: ; [: (,. i.)&.> 1 + i.

    ([: f/"1 [: ; [: (,. i.)&.> 1 + i.) 5
1 2 3 3 4 7 4 5 8 13 5 6 9 14 21



-- 
Met vriendelijke groet,
=@@i

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

Reply via email to