thought I would share, as I figured out something that may help others.
(0 1 ;2;1) { (L:0) 1 2 3 ; 4 5 7,&< 14 15
┌───┬─┬──┐
│1 2│7│15│
└───┴─┴──┘
as hoped for, but I thought this should also work
(0 1 ;2;1) { (L:0) 1 2 3 ,&< 4 5 7,&< 14 15
|length error
The reason for the length error is that there are only 2 top level items on
right hand side. Even if there are 3 leafs.
the work around is
(0 1 ;2;1)([ { L:0 <S:0@:]) 1 2 3 ,&< 4 5 7,&< 14 15
or
(0 1 ;<2;1){ (L:0) 1 2 3 ,&< 4 5 7,&< 14 15
┌───┬──────┐
│1 2│┌─┬──┐│
│ ││7│15││
│ │└─┴──┘│
└───┴──────┘
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm