Fixed whitespace: trailing and indent.
This commit is contained in:
parent
3afe01adc7
commit
9c115996f9
2 changed files with 4 additions and 4 deletions
|
|
@ -39,13 +39,13 @@
|
||||||
:e 5})
|
:e 5})
|
||||||
(update-in [:c :e] inc)
|
(update-in [:c :e] inc)
|
||||||
(get-in [:c :e])))
|
(get-in [:c :e])))
|
||||||
|
|
||||||
"We can use functions we have written ourselves that follow this pattern"
|
"We can use functions we have written ourselves that follow this pattern"
|
||||||
(= __
|
(= __
|
||||||
(-> {}
|
(-> {}
|
||||||
(assoc :a 1)
|
(assoc :a 1)
|
||||||
(function-that-takes-a-map "hello" "there")))
|
(function-that-takes-a-map "hello" "there")))
|
||||||
|
|
||||||
"We can also thread last using ->>"
|
"We can also thread last using ->>"
|
||||||
(= __
|
(= __
|
||||||
(->> [1 2 3]
|
(->> [1 2 3]
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
(def transforms
|
(def transforms
|
||||||
(comp (map inc)
|
(comp (map inc)
|
||||||
(filter even?)))
|
(filter even?)))
|
||||||
|
|
||||||
(meditations
|
(meditations
|
||||||
"A sequence operation with only one argument often returns a transducer"
|
"A sequence operation with only one argument often returns a transducer"
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
"We can do this eagerly"
|
"We can do this eagerly"
|
||||||
(= __
|
(= __
|
||||||
(into [] transforms [1 2 3]))
|
(into [] transforms [1 2 3]))
|
||||||
|
|
||||||
"Or lazily"
|
"Or lazily"
|
||||||
(= __
|
(= __
|
||||||
(sequence transforms [1 2 3]))
|
(sequence transforms [1 2 3]))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue