[Jprogramming] Agenda's rank error

Aai agroeneveld400 at gmail.com
Sat Oct 8 19:45:58 HKT 2011


Look at the result of e.g.
     (2<$) i.2 3 3
0 1 1

and agenda @. uses the result of verb v in m @. v to select one of gerund m

You probably want something like one of the following:

    (2<{.@$) i.10
1

    (2<#@$) i.10
0

or use #

    (2<#) i.10
1


    1:`2:@.(2<{.@$) i.10
2

      1:`2:@.(2<#@$) i.10
1

  1:`2:@.(2<#) i.10
2




Hallo EelVex, je schreef op 08-10-11 12:35:
> Hi all.
>
> Why does this:
>
>     1:`2: @. (2<$) i.10
>
> give a rank error?
> ----------------------------------------------------------------------
> For information about J forums seehttp://www.jsoftware.com/forums.htm


More information about the Programming mailing list