(~: |.!._1@:>:) 4 5 6 7 8 11 12 16 17 19 21 1 0 0 0 0 1 0 1 0 1 1 Henry Rich
bill lam wrote: > I try to find the boolean list for the first number in an strictly > increasing integer list. eg. > > 1, ( >:@}: ~: }.) 4 5 6 7 8 11 12 16 17 19 21 > 1 0 0 0 0 1 0 1 0 1 1 > > but it does not handle the corner case where the list is empty > > 1, ( >:@}: ~: }.) 0$0 > 1 > > I want it to return an empty list instead. Any idea? > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm