0 : 0
 This post was originally entitled "raze curiosity".
 It is not raze's fault.
 Because map represents a boxed box as an empty box
 and raze discards an empty box, we cannot reconstruct
 a boxed structure using the paths to the leaves.

 Why is {:: a: not
 +---+
 |+-+|
 ||0||
 |+-+|
 +---+
)


   ] a =: 1;''
+-++
|1||
+-++
   #a
2
   #;a
1
   s
+-+---+
|a|+-+|
| ||b||
| |+-+|
+-+---+
   s ,&< S: 0 1 {:: s
+-+----+
|a|+-+ |
| ||0| |
| |+-+ |
+-+----+
|b|+-++|
| ||1|||
| |+-++|
+-+----+


   NB. Paths to the leaves

   s (; <@;) S: 0 1 {:: s  NB. Info lost, cannot reconstruct s.
+-+-+
|a|0|
+-+-+
|b|1|
+-+-+

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to