R. E. Boss wrote:
> I ... concluded you want all vectors where at least two 1's are
> separated by at least one 0.
>
> This is also achieved by
> (1+./@:< [:}:#;.1~)"1
You correctly interpreted my intent. Thank you very much for this concise
alternative.
--
Tracy B. Harms
The advantages of executability and universality
found in programming languages can be effectively
combined, in a single coherent language, with the
advantages offered by mathematical notation.
Kenneth E. Iverson
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm