« first day (1928 days earlier)
← previous day
next day →
last day (732 days later) »
doug
1:46 AM
In Dyalog 18 I’d probably do
⊢⊢⍤/⍨(~¯1↓∧\∨⊢∧1⌽⊢)⍥(1,⍨' '=⊢)
.
Without appending the 1 it fails for
'happy '
. I.e. a single trailing space.
5 hours later…
doug
7:03 AM
I think this achieves something similar to B><\B in the algorithm ovs posted.
15 hours later…
Richard
9:59 PM
Why is '2⊥⍣¯1⊢0' returning ⍬ and not 0?
awagga
10:47 PM
I'm not sure, but if you want 0 you can do
2⊤0
1 hour later…
rak1507
11:55 PM
@Richard because 2⊥⍬ is 0
« first day (1928 days earlier)
← previous day
next day →
last day (732 days later) »
all rooms
Transcript for
May
6
May '22
7
May
8
The APL Orchard
apl.chat
― Learn, teach, ask, code, golf, & discuss usage. See
...
5
apl
array-manipulation
j
tips
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile