bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] IOTA


From: Elias Mårtenson
Subject: Re: [Bug-apl] IOTA
Date: Thu, 3 Mar 2016 21:41:03 +0800

The original question is as of yet unresolved though. Wouldn't it make sense to extend GNU APL's iota function to do the same as Dyalog? It wouldn't cause any compatibility issues since it raises an error right now.

Regards,
Elias

On 3 March 2016 at 20:26, Juergen Sauermann <address@hidden> wrote:
Hi,

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.


-k




reply via email to

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