---Raul Miller wrote:
> On 5/31/08, Sherlock, Ric <[EMAIL PROTECTED]> wrote:
> > I'm hesitant to ask, but in the interests of furthering my
> > understanding of the concepts (rather than just knowledge of
> > solutions), why does the following give a rank error?
> > ((0 1 2,:0 2 1){ops) /"1 _] 1 2 3 4
>
> Well...
>
> First off, note that
> +/"1 _]1 2 3 4
> 10
>
> The "1 _ is irrelevant.
Thanks Raul, I think I see my problem now. I was thinking that for
m/"1 _ y
the 1 was applied to the m when in actual fact it is only applied to x if it is
present i.e.
x m/"1 _ y
Let me know if I'm barking up the wrong tree!
> So the above expression would be equivalent to
> g=: (0 1 2,:0 2 1){ops
> g/1 2 3 4
>
> Anyways, I imagine that the problem is that 0{ g and
> 1 { g would not be structured properly to be treated
> as gerunds.
Actually (0{ g)/1 2 3 4 or (1{g)/1 2 3 4 both work for me fine.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm