0 : 0
Devon McCormick didn't follow step three. Step 3 is
"item count of razed a" not "item count of raveled a". Replace the
comma with semi-colon, then continue. Brian Schott wants my definition
of s. This message explains a negative consequence of the choice.
Let's try again! Thanks.
Reminder, the question is
{::a:
Is I expect
+--+ +---+
|++| |+-+|
|||| ||0||
|++| |+-+|
+--+ +---+
please explain this choice?
)
] a =: 1;''
+-++
|1||
+-++
#a
2
# ; a NB. item count of RAZEd a
1
] s =: 'a';<<'b'
+-+---+
|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