Re:Random walk in 2 lines of J
by mgraczyk on Saturday October 15, 2022 @08:50PM
(#33220079)
Interesting, but I guess I'd have to learn APL or J to compare. Without understanding what those symbols mean, it seems much less like "math" than the numpy version.
[ Parent
| on HN ]
⊃ is 'first', ⍸ is where, f⍤g is like function composition, and ⍤1 means apply to each rank 1 (vector), so ⊃⍤⍸⍤1 means 'the first true for each vector'