This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns ordered-combination) | |
(defn ordered-combination | |
[sort-fn seqs] | |
(if (every? empty? seqs) | |
'() | |
(let [sorted (sort-by #(sort-fn (first %)) seqs) | |
chosen (first sorted) | |
new-seqs (concat [(rest chosen)] (rest sorted))] | |
(concat [(first chosen)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns pom2proj | |
(:require [clojure.xml :as xml] | |
[clojure.zip :as zip] | |
[clojure.java.io :as io] | |
[clojure.data.zip.xml :as zx]) | |
(:use [clojure.pprint :only [pprint]])) | |
(defn- text-attrs | |
[loc ks] | |
(map (fn [k] |