> Clearly, a is numeric. How can I change a to a numeric atom 3 , rather > than a one element list 3 ? > I need to find where the 3's are in a list. The result of executing some > expression has produced a one item list of a 3 .
Take the head of it: ({., a) = 2 3 5 3 4 0 1 0 1 0 (even if it is higher-order): ({., 1 1 1 1$3) = 2 3 5 3 4 0 1 0 1 0 Or, adjust the ranks of the verb: a (="0 _) 2 3 5 3 4 0 1 0 1 0 (1 1 1 1$3) (="0 _) 2 3 4$1 2 3 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm