in reply to recursive split

Practically identical to recursive algorithm for nested data structures. The only difference is that you don't require parens around the entire input. Easily fixable.