That's the question, but as for something functional related to our last
meeting: I couldn't do any better than this
http://www.haskell.org/ghc/docs/latest/html/libraries/base/src/Data-List.html#transpose
Note how the implementation just 'dives into' the nested list structure
(twice, actually, if you count it pulling out both heads and tails of the
sublists). What interested me (more than the issue with using Clojure's
partition over a string) was how the initial attempts to do this tried to
build it out of higher-order functions.
Sometimes, I think you just have to recurse over a structure explicitly
(at least, absent a custom HOF that does the same for you - and I don't
think there's a familiar one that does, in this case) and I think this is
one of those situations.
Cheers,
jan
--
Update your address books:
ja...@ioctl.org http://ioctl.org/jan/
That which does not kill us goes straight to our thighs.