
From:  Dr . Jürgen Sauermann 
Subject:  Re: Issues with drop of a scalar argument 
Date:  Sat, 25 Apr 2020 16:02:01 +0200 
Useragent:  Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 
Hi Kacper, thanks, see below. On 4/25/20 12:03 AM, Kacper Gutowski
wrote:
1° With left argument longer than one, the scalar is properly extended to a higher rank oneelement array, but then it's not dropped correctly unless all axes are nonzero.Fixed in SVN 1271 2° When left argument has one nonzero element and right is a nonzero scalar, the returned result is a weird value that looks like the correct one (0⍴0), but is distinct, and isn't transferable.Fixed in SVN 1271 yes. But ISO has an example ''↓5 which looks the same. ''↓⍳3 ⍝ this is an extension (length error by ISO)Fixed in SVN 1271. Now gives length error. ''↓⍳3 3Should be correct shape lengths are: left 0, right 2. By my reading of ISO, when left argument is empty, the right must be a scalar (or it will be a length error) which is returned unchanged. In Dyalog it's extended such that any value is returned unchanged, in GNU APL ⍬↓X ←→ 1↓X for nonscalar X. Is this intended and correct? (Is that what APL2 does?)The 2 ⎕TF looks slightly better now (your first example works, the second not). I'll keep working on iy. Bst regards, Jürgen 
[Prev in Thread]  Current Thread  [Next in Thread] 