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