No title Revision 343130363934 (Fri Aug 17 2012 at 07:02) - Diff Link to this snippet: https://friendpaste.com/1Yti8jqQuUpdY8t8mKOg9 Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 1234567(fn combine [c w] ; combine a word with a collection in every possible way (for [x (range (inc (count c)))] (let [[c1 c2] (split-at x c)] (concat c1 [w] c2)))); usage(reduce #(mapcat (fn [c] (combine c %2)) %) [[]] s)