When I use the ⍴ operator where one of the entries in the left-hand list is a variable, I get a DOMAIN ERROR:
The following works:
But the following gives a DOMAIN ERROR:
This happens even if the variable reference is itself stored in a variable:
value←2 ⍝ 'value' is now assigned the value 2
x←2 1 ⍝ x contains the list (2 1)
y←value 1 ⍝ y should be the same as x
x ⍝ Let's confirm x's contents
y ⍝ y seems to be the same as x here
x ⍴ 2 1 ⍝ Reshape with x works correctly
y ⍴ 2 1 ⍝ But reshaping with y doesn't
Is this a bug? I can't see what I could have done wrong here.
Regards,
Elias