I cannot figure out how to make a "simple" verb that finds the indices
(like i.) but gives the next index if there are multiple occurrences, like
this

   0 0 2 0 2 0 3 3 foo 2 2 2 3 4
2 4 8 6 8

I have a hunch a boolean matrix is involved but there I get stuck.

Kr,
Pablo
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to