Jump to content

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, 2, 3, 4, 4, 5
2 5</lang>
 
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.