diff --git a/src/koans/25_threading_macros.clj b/src/koans/25_threading_macros.clj index ea7c5218a..8bb630f5a 100644 --- a/src/koans/25_threading_macros.clj +++ b/src/koans/25_threading_macros.clj @@ -39,13 +39,13 @@ :e 5}) (update-in [:c :e] inc) (get-in [:c :e]))) - + "We can use functions we have written ourselves that follow this pattern" (= __ (-> {} (assoc :a 1) (function-that-takes-a-map "hello" "there"))) - + "We can also thread last using ->>" (= __ (->> [1 2 3] diff --git a/src/koans/26_transducers.clj b/src/koans/26_transducers.clj index 817495159..4d8c2bba7 100644 --- a/src/koans/26_transducers.clj +++ b/src/koans/26_transducers.clj @@ -6,7 +6,7 @@ (def transforms (comp (map inc) - (filter even?))) + (filter even?))) (meditations "A sequence operation with only one argument often returns a transducer" @@ -20,7 +20,7 @@ "We can do this eagerly" (= __ (into [] transforms [1 2 3])) - + "Or lazily" (= __ (sequence transforms [1 2 3]))