I expect all of the following results to be 1 0 , but the result is 0 1 for the parentheses and brackets examples. If I am wrong and the results are as they should be, can you suggest a way to produce my desired results? (Btw, I am working on AoC day 13.)
/:'((()))';'(())' 0 1 /:'[[[]]]';'[[]]' 0 1 /:'((()))';'(())' 0 1 /:'{{{}}}';'{{}}' 0 1 /:' ';'' 1 0 /:'aaaaaa';'aaaa' 1 0 -- (B=) <-----my sig Brian Schott ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm