clojure.
math.
combinatorics is a Clojure contrib library for generating permutations, combinations, subsets, selections, and partitions of collections.
The new release provides a workaround for longstanding issues in Clojure that cause (apply concat ...) and mapcat to be insufficiently lazy.
Also, new to version 0.1.6 is permuted-combinations, which permutes all the combinations.