Cliff's is best, as long as the boxed contents have rank < 2.
Henry Rich
On 4/10/2018 1:26 PM, Cliff Reiter wrote:
]a=:10 6 8 <@?@$"0] 2
+-+-+-+-+-+-+-+-+-+-+
|1|1|1|1|0|0|0|1|0|1|
+-+-+-+-+-+-+-+-+-+-+
|0|1|1|1|0|1| | | | |
+-+-+-+-+-+-+-+-+-+-+
|0|1|0|1|1|0|0|1| | |
+-+-+-+-+-+-+-+-+-+-+
<@;"1 a
+-------------------+-----------+---------------+
|1 1 1 1 0 0 0 1 0 1|0 1 1 1 0 1|0 1 0 1 1 0 0 1|
+-------------------+-----------+---------------+
,.<@;"1 a
+-------------------+
|1 1 1 1 0 0 0 1 0 1|
+-------------------+
|0 1 1 1 0 1 |
+-------------------+
|0 1 0 1 1 0 0 1 |
+-------------------+
On 4/10/2018 12:35 PM, Skip Cave 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
---
This email has been checked for viruses by AVG.
http://www.avg.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm