Linda, But, your solutions do not maintain the ambivalence of pad =: (1&$:) : ((0,.~0,.0,~0,]) ^:[ )
Ambivalent pad can pad any number of zeros by employing the lefthand argument. To see the generality, experiment with alternatives like the following. pad i. 2 3 1 pad i. 2 3 2 pad i. 2 3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
