Page 1 of 1

]box in the box

Posted: Thu Sep 24, 2020 2:36 pm
by ArrayMacNB
]box
Is ON
⎕←{⎕←⍵}(1 2)(3 4)
1 2 3 4
┌───┬───┐
│1 2│3 4│
└───┴───┘
⍝⍝ How to get identical behavior inside and outside a dfn?

Re: ]box in the box

Posted: Thu Sep 24, 2020 6:32 pm
by petermsiegel
Here:
      ]box on -fns=on
Was ON -fns=off
⎕←{⎕←⍵}(1 2)(3 4)
┌───┬───┐
│1 2│3 4│
└───┴───┘
┌───┬───┐
│1 2│3 4│
└───┴───┘
-fns=on enables boxing of output within functions, as they are executing.