The juxtaposition of 3 verbs f g h applied to an argument x
does not mean f (g (h x)).  Instead, what you need is @ 
Thus, instead of   2&= 3!:0&>{: , you need
(2&=)@(3!:0&>)@{:



----- Original Message -----
From: Martin Pelletier <[EMAIL PROTECTED]>
Date: Friday, September 21, 2007 17:18
Subject: [Jprogramming] Syntax of agenda and rank
To: Programming forum <[email protected]>

> Hello,
> 
> I humbly request some help on this. I have 2 verbs to which I 
> want to 
> pipe arguments of different types. Let's say verbstr and verbnum.
> 
> I want to use agenda to apply the correct verb.
> 
> This is the variable going into the entire gimmick:
> 
> var =. (10;20;'foo'),:10;20;0
> 
> The type to determine is in the last item (of each row)
> 
> I would have thought the following would work:
> 
> [EMAIL PROTECTED](2&= 3!:0&>{:)"1 var
> 
> but I'm obviously missing something and can't figure out how to 
> apply 
> rank in this case.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to