]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 !

]box in the box

Postby ArrayMacNB on Thu Sep 24, 2020 2:36 pm

]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?
ArrayMacNB
 
Posts: 9
Joined: Tue Sep 01, 2020 3:03 pm

Re: ]box in the box

Postby petermsiegel on Thu Sep 24, 2020 6:32 pm

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.
petermsiegel
 
Posts: 141
Joined: Thu Nov 11, 2010 11:04 pm


Return to APL Chat

Who is online

Users browsing this forum: No registered users and 1 guest