I want to flatten a list containing boxed elements.

a =: 1 ; 2 3 ; 4 5
b =: a ; a
a =: b ; b
test =: a ; b

the array test thus contains many test boxes and was the ad hoc test case I
was trying to flatten.

flattening a multidimensional array is simple enough ,/^:_

but thus far, I can't seem to figure out how to flatten test and other
similarly convoluted nested boxes.

It particularly baffles me that > test and >"_1 test both result in errors.
It seems like there's something simple I'm missing, but I can't quite figure
out what.

Any help would be much appreciated.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to