On 9/11/07, Terrence Brannon <[EMAIL PROTECTED]> wrote:
> I'm wondering what went on under the hood when I passed an absurd rank
> to Floor. Floor by default operates with rank 0 - it takes the floor
> of each element. And that is what makes sense. Any other rank is
> absurd.
>
> But why didn't it blow up when forced to operate on 1-cells or
> 2-cells. In fact, why did it give the right answer?
>
>  b =: 2  2 $ 4.5 6.7 8.8 9.8
...
>   <."1 b
> 4 6
> 8 9

Here, you have created a rank 1 function (which applies <. to
the items 4.5 6.7 and 8.8 9.8).  But it's still using the normal
definition of <. on each of those items.

If you had used <@<. in place of <. you would have seen
the difference between "0, "1 and "2

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

Reply via email to