[Jprogramming] from each

David Mitchell davidmitchell at att.net
Mon Jun 9 01:22:17 HKT 2008


One way is:

    ('';0;1;0 1){&.>  <'ab'
++-+-+--+
||a|b|ab|
++-+-+--+

--
David Mitchell

Tracy Harms wrote:
> &nbsp;&nbsp; '';0;1;0 1&nbsp;&nbsp; NB. example boxlist
> ++-+-+---+
> ||0|1|0 1|
> ++-+-+---+
> &nbsp;&nbsp; '';'a';'b';'ab'&nbsp;&nbsp; NB. desired output given 'ab' and boxlist
> ++-+-+--+
> ||a|b|ab|
> ++-+-+--+
> 
> I've tried a variety of combinations of { (from) with &amp;.&gt; (each) without grasping a correct combination.&nbsp; Advice is welcome.
> 
> Tracy
> 
> 
> 
> 
>       
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 


More information about the Programming mailing list