[Jprogramming] {. y produces an array.

Raul Miller rauldmiller at gmail.com
Fri Oct 21 11:53:30 HKT 2011


On Thu, Oct 20, 2011 at 10:09 PM, Viktor Cerovski
<viktor.cerovski at gmail.com> wrote:
> Not so long post with a proof that in J scalars are different from arrays.

I am not convinced by this proof.

>  There is a monoidal zero wrt Append (,) for any array
>  except when its shape is 0$0.

This sounds like a property of append.

As an analogy, consider reciprocals -- you would not argue that 0 is
not a finite number because it does not have a finite reciprocal.
Arguing that you cannot append to a scalar and get a scalar seems to
me to be similarly futile.

Append is an operation that is guaranteed to give you a result that
has some kind of list structure.  That is all.

-- 
Raul


More information about the Programming mailing list