[Top][All Lists]

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

Re: [Bug-apl] IOTA

From: Juergen Sauermann
Subject: Re: [Bug-apl] IOTA
Date: Thu, 03 Mar 2016 13:26:26 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0


I see. I guess I overlooked the 'simple' attribute in both definitions.

I will fix this in GNU APL.

/// Jürgen

On 03/03/2016 12:53 PM, Kacper Gutowski wrote:
On Thu, Mar 3, 2016 at 12:40 PM, Juergen Sauermann
<address@hidden> wrote:
the IBM APL2 language reference says (page 111):

If R is a simple scalar, ⊂ R is R. If R is not a simple scalar, the depth of
R is 1+ ≡R.

And the ISO standard says the same (page 169):

Z ← ⊂B
 Note: If B is a simple-scalar, Z is B.
Jay is nevertheless correct, because ⊂x is NOT a simple-scalar
according to ISO.  On page 21 it has the following definitions:

Simple: An array is simple if each item of its ravel-list is either
  a character or a number.
Simple-scalar: A simple array whose rank is zero.
The sole item of ⊂x is an enclosed array, not a character or number.


reply via email to

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