Thank you. It was the kind of answer I suspected. But I had spent an hour on Jsoftware and in the wiki without finding the solution.
Again, thanks! On Wed, Nov 17, 2021 at 3:10 PM chris burke <[email protected]> wrote: > See https://code.jsoftware.com/wiki/Essays/Progressive_Index-Of > > This is in misc/miscutils/utils as progressiveindex, e.g. > > load'misc/miscutils/utils' > > 0 0 2 0 2 0 3 3 progressiveindex 2 2 2 3 4 > > 2 4 8 6 8 > > > > On Wed, Nov 17, 2021 at 5:33 AM Pablo Landherr <[email protected]> > wrote: > > > 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 > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
