« first day (936 days earlier)
← previous day
next day →
last day (1723 days later) »
J. Sallé
5:18 PM
Hey guys, is there a golfy way to find how many elements are repeated in a vector?
dzaima
6:00 PM
@J.Sallé how many times per unique element, or in total?
J. Sallé
@dzaima per unique element, so
1 1 2 3
would return
2 1 1
dzaima
@J.Sallé
≢⍤⊢⌸1 1 2 3
also
∪⍧⊢
J. Sallé
Nice, I think that's exactly what I needed
« first day (936 days earlier)
← previous day
next day →
last day (1723 days later) »
all rooms
Transcript for
Aug
16
Aug '19
19
Aug
20
The APL Orchard
apl.chat
― Learn, teach, ask, code, golf, & discuss usage. See
...
4
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