« first day (2848 days earlier)
← previous day
next day →
last day (23 days later) »
Ven
15:30
o/, is there a built-in/simpler version for inverse of where? I wrote
{1@⍵⊢0⍴⍨⌈/⍵}
, but I seem to remember there was an easier way...
Adám
@Ven
⍸⍣¯1
?
If you know the final mask size, then
(⍳size)∊indices
Automatic sizing:
⊢∊⍨∘⍳⌈/
⊢∊⍨∘⍳∘⊃⌈/
for multi-dim arr.
Ven
16:21
@Adám I tried that, but that didn't work
⍸⍤¯1⊢1 4
the max size is just the highest here, but that's easily configurable with
⍺←⌈/⍵
So something like
⍳∘(⌈/)∊⊢
/
⊢∊⍨⍳(⌈/)
Adám
@Ven uh,
⍣
not
⍤
Did you APLcart it?
Ven
16:50
@Adám ugh, I guess I typed it wrong both times... Thanks. (and I did, but didn't try
inverse
)
Adám
17:06
@Ven what did you search for?
« first day (2848 days earlier)
← previous day
next day →
last day (23 days later) »
all rooms
Transcript for
Nov
10
Nov
12
Nov
13
The APL Orchard
apl.chat
― Learn, teach, ask, code, golf, & discuss usage. See
...
4
2
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