- ;; uochan's solution to http://4clojure.com/problem/53
- (fn [coll]
- (let [inc-seq? (fn [x] (every? #(= -1 %) (map #(apply - %) (partition 2 1 x))))
- ls (filter inc-seq? (mapcat (fn [n] (partition n 1 coll)) (range 1 (count coll))))]
- (if (-> ls last count (= 1)) () (last ls))))