File tree 3 files changed +15
-20
lines changed
3 files changed +15
-20
lines changed Original file line number Diff line number Diff line change 14
14
:comments " same as Clojure" }
15
15
:deploy-repositories [[" clojars" {:username :env/clojars_username :password :env/clojars_password :sign-releases false }]]
16
16
:plugins [[lein-release " 1.0.9" ]]
17
- :lein-release {
18
- :scm :git ; Because we're not in the top-level directory, so it doesn't auto-detect
19
- :deploy-via :clojars
20
- }
17
+ :lein-release {:scm :git ; Because we're not in the top-level directory, so it doesn't auto-detect
18
+ :deploy-via :clojars }
21
19
:dependencies [[org.clojure/tools.reader " 1.0.0-beta3" ]
22
20
[org.clojure/tools.cli " 0.3.5" ]
23
21
[org.clojure/tools.logging " 0.3.1" ]
28
26
[cheshire " 5.6.3" ]]
29
27
:profiles {:dev {:aot ^:replace []
30
28
:dependencies [[org.clojure/clojure " 1.8.0" ]]
31
- :plugins [[lein-cljfmt " 0.5.6" ]] }
29
+ :plugins [[lein-cljfmt " 0.5.6" ]]}
32
30
:1.4 {:dependencies [[org.clojure/clojure " 1.4.0" ]]}
33
31
:1.5 {:dependencies [[org.clojure/clojure " 1.5.1" ]]}
34
32
:1.6 {:dependencies [[org.clojure/clojure " 1.6.0" ]]}
Original file line number Diff line number Diff line change 30
30
[f form]
31
31
(walk (partial prewalk f) identity (f form)))
32
32
33
-
34
33
(defn do-walk [pred f forms]
35
34
(prewalk
36
- (fn [x] (if (pred x) (f x) x))
37
- forms))
35
+ (fn [x] (if (pred x) (f x) x))
36
+ forms))
38
37
39
38
(defn cs? [s]
40
39
(chunked-seq? s))
41
40
42
41
(defn chunked-if? [form]
43
42
(and
44
- (seq? form)
45
- (= (first form) 'if)
46
- (seq? (second form))
47
- (= (first (second form)) `chunked-seq?)))
43
+ (seq? form)
44
+ (= (first form) 'if)
45
+ (seq? (second form))
46
+ (= (first (second form)) `chunked-seq?)))
48
47
49
48
(defn unchunk [forms]
50
49
(->>
51
- forms
52
- (do-walk `#{chunked-seq?} (constantly `cs?))
53
- macroexpand
54
- (do-walk chunked-if? #(nth % 3 ))))
50
+ forms
51
+ (do-walk `#{chunked-seq?} (constantly `cs?))
52
+ macroexpand
53
+ (do-walk chunked-if? #(nth % 3 ))))
Original file line number Diff line number Diff line change 11
11
:distribution :repo
12
12
:comments " same as Clojure" }
13
13
:plugins [[lein-release " 1.0.9" ]]
14
- :lein-release {
15
- :scm :git ; Because we're not in the top-level directory, so it doesn't auto-detect
16
- :deploy-via :clojars
17
- }
14
+ :lein-release {:scm :git ; Because we're not in the top-level directory, so it doesn't auto-detect
15
+ :deploy-via :clojars }
18
16
:deploy-repositories [[" clojars" {:username :env/clojars_username :password :env/clojars_password :sign-releases false }]]
19
17
:min-lein-version " 2.0.0"
20
18
:dependencies [[bultitude " 0.2.8" ]]
You can’t perform that action at this time.
0 commit comments