Or simply box each row. ,.<"1>tst
┌───────────────────┐ │1 1 0 0 0 0 1 1 0 0│ ├───────────────────┤ │1 1 1 0 1 1 1 1 0 0│ ├───────────────────┤ │0 0 0 0 0 1 0 1 1 0│ └───────────────────┘ On Tue, Apr 10, 2018 at 10:44 AM, Raul Miller <[email protected]> wrote: > To get that exact result, I'd use > f=: ,@<@;"1 > > but I believe Don Guinn's proposal (f=: >) would be more useful. > > Thanks, > > -- > Raul > > On Tue, Apr 10, 2018 at 12:35 PM, Skip Cave <[email protected]> > wrote: > > NB.I have an array of boxed boolean values called tst: > > $tst > > > > 132 30 > > > > NB. I look at the first three rows of tst: > > > > 3{. tst > > > > ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ > > > > │0│1│1│1│0│1│1│0│0│1│0│1│1│0│1│1│1│1│0│0│0│1│1│0│0│1│1│1│ │ │ > > > > ├─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┤ > > > > │0│1│1│1│0│1│0│1│1│0│0│1│0│1│0│1│1│ │ │ │ │ │ │ │ │ │ │ │ │ │ > > > > ├─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┼─┤ > > > > │0│1│1│0│1│0│1│0│1│0│1│0│1│0│1│0│0│1│0│1│0│1│0│1│0│0│0│1│0│0│ > > > > └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ > > NB. I want to remove the individual boxing: > > > > f 3{. txt > > > > ┌───────────────────────────────────────────────────────────┐ > > > > │0 1 1 1 0 1 1 0 0 1 0 1 1 0 1 1 1 1 0 0 0 1 1 0 0 1 1 1 │ > > > > ├───────────────────────────────────────────────────────────┤ > > > > │0 1 1 1 0 1 0 1 1 0 0 1 0 1 0 1 1 │ > > > > ├───────────────────────────────────────────────────────────┤ > > > > │0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 0 0 0 1 0 0│ > > > > └───────────────────────────────────────────────────────────┘ > > > > NB. How do I construct the unboxing verb 'f'? > > > > Skip > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
