b=: 0 1 0 1 1 0 1 1 1 0 1 0
   b > }: 0,b
0 1 0 1 0 0 1 0 0 0 1 0


----- Original Message -----
From: bill lam <[EMAIL PROTECTED]>
Date: Tuesday, March 4, 2008 21:05
Subject: [Jprogramming] leading edge of a boolean array
To: Programming forum <[email protected]>

> 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
> 
> I want the result as
>    0 1 0 1 0 0 1 0 0 0 1 0
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to