Greate, but why the ,0 at the end of the code?
On March 29, 2021 10:41:37 PM GMT+02:00, Clifford Reiter <[email protected]> wrote: > 0-.~#;._2 t,0 >2 3 1 5 1 > > > > >On Mon, Mar 29, 2021 at 4:34 PM Skip Cave <[email protected]> wrote: > >> Given a vector t of ones and zeros" >> >> t=. 1 1 0 0 1 1 1 0 1 0 1 1 1 1 1 0 0 0 1 0 >> >> >> How can I code a verb gp that will enumerate the sizes of each >> zero-delimited group of ones in the vector t? >> >> For example: >> >> >> gp t >> >> 2 3 1 5 1 >> >> >> Skip Cave >> Cave Consulting LLC >> ---------------------------------------------------------------------- >> 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
