]box in the box

APL-related discussions - a stream of APL consciousness.
Not sure where to start a discussion ? Here's the place to be
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !
Post Reply
ArrayMacNB
Posts: 9
Joined: Tue Sep 01, 2020 3:03 pm

]box in the box

Post 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?
petermsiegel
Posts: 159
Joined: Thu Nov 11, 2010 11:04 pm

Re: ]box in the box

Post 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.
Post Reply