Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 7 lines (4 sloc) 0.201 kB
d8e91b6 @purcell Initial check-in of a few rosettacode solutions
authored
1 ;; http://rosettacode.org/wiki/Permutation_Sort#Clojure
2
3 (use '[clojure.contrib.combinatorics :only (permutations)])
4
5 (defn permutation-sort [s]
6 (first (filter (partial apply <=) (permutations s))))
Something went wrong with that request. Please try again.