Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
5
Task/Knuths-algorithm-S/Clojure/knuths-algorithm-s-3.clj
Normal file
5
Task/Knuths-algorithm-S/Clojure/knuths-algorithm-s-3.clj
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
(defn s-of-n-creator [n]
|
||||
(let [state (atom [[] 0])
|
||||
s-of-n-fn (s-of-n-fn-creator n)]
|
||||
(fn [item]
|
||||
(first (swap! state s-of-n-fn item)))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue