|
From: | Ben Harris |
Subject: | ¨ (each) on defined function on array of empty arrays |
Date: | Sat, 30 May 2020 15:03:37 +0100 (BST) |
User-agent: | Alpine 2.11 (DEB 23 2013-08-11) |
a←0⍴('foo' 'bar') ≡a 2 aa←a a ≡aa 3 ≡¨aa 2 2 ∇z←depth x [1] z←≡x [2] ∇ depth a 2 depth aa 3 depth¨aa 1 1The last line is where I think the bug is. I would expect the result there to be "2 2". It looks like somehow empty arrays are getting the wrong type when passed to a defined function by "each".
-- Ben Harris
[Prev in Thread] | Current Thread | [Next in Thread] |