Variable declaration reset: Difference between revisions
m
J: when showing the idiomatic approach, use the idomatic syntax for expressing a numeric list
(J) |
m (J: when showing the idiomatic approach, use the idomatic syntax for expressing a numeric list) |
||
Line 177:
First off, the idiomatic J approach to finding indices of numbers which match their predecessors would be:
<lang J> 1+I.(}:=}.) 1
2 5</lang>
|