
31 Dec
2009
31 Dec
'09
8:24 a.m.
Hi,
explode [[[1,2],[3],[4,5,6]], [[1, 2], [14,15], [16]]] --> [[1,3,4], [1,3,5],[1,3,6],[2,3,4],[2,3,5],[2,3,6],[1,14,16],[1,15,16], [2,14,16],[2,15,16]] I don't think the following will solve your problem, but explode can be rewritten with existing functions thanks to the list monad:
explode = concatMap sequence Gergely -- http://www.fastmail.fm - A no graphics, no pop-ups email service