Hi all,

Another path to a similar result :

   (];parens;depthOf) ,. input
┌─┬──┬─┐
│(│ 1│1│
│(│ 1│2│
│a│ 0│2│
│^│ 0│2│
│2│ 0│2│
│)│_1│1│
│+│ 0│1│
│(│ 1│2│
│(│ 1│3│
│b│ 0│3│
│)│_1│2│
│^│ 0│2│
│2│ 0│2│
│)│_1│1│
│)│_1│0│
│=│ 0│0│
│(│ 1│1│
│c│ 0│1│
│^│ 0│1│
│2│ 0│1│
│)│_1│0│
└─┴──┴─┘
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to