Oleg Kobchenko wrote:
({. , 2 </\ ]) 0 1 0 1 1 0 1 1 1 0 1 0 0 1 0 1 0 0 1 0 0 0 1 0--- bill lam <[EMAIL PROTECTED]> wrote:how to find the leading edge of a boolean array, eg. for this array 0 1 0 1 1 0 1 1 1 0 1 0
Also: (> 0 , }:) 0 1 0 1 1 0 1 1 1 0 1 0 0 1 0 1 0 0 1 0 0 0 1 0 (defined as firstones in script parts). ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
