bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Strange behaviour of ,/


From: Jay Foad
Subject: Re: [Bug-apl] Strange behaviour of ,/
Date: Mon, 3 Feb 2014 10:07:38 +0000

On 31 January 2014 17:37, Elias Mårtenson <address@hidden> wrote:
>       8⎕CR ,/1 2 3 4
> ┌─────────┐
> │┌→──────┐│
> ││1 2 3 4││
> │└───────┘│
> └∊────────┘

I just have one comment to add to Kacper's excellent explanation: a
useful thing to remember about this implementation of *reduction* is
that it always *reduces* the rank of the argument by one (except
there's a special case for scalar arguments).

The vector 1 2 3 4 has rank 1, so the result must have rank 0, so you
get an enclosed vector.

Jay.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]