See 'A Mistake to Avoid' in the Rank chapter of JfC.

You THINK you are forcing <. to operate on lists, but
you're not.  You are making a new verb that operates on lists;
then that verb invokes <. .

Henry Rich

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Terrence Brannon
> Sent: Tuesday, September 11, 2007 8:33 AM
> To: General forum
> Subject: [Jgeneral] using absurd ranks with Floor
> 
> 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
>    b
> 4.5 6.7
> 8.8 9.8
>    <. b
> 4 6
> 8 9
>    <."1 b
> 4 6
> 8 9
>    <."2 b
> 4 6
> 8 9
> 
> -- 
> 
> J IRC Channel irc://irc.freenode.org/jsoftware
> ----------------------------------------------------------------------
> For information about J forums see 
> http://www.jsoftware.com/forums.htm

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

Reply via email to