mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-26 15:13:56 +00:00
[clojure/ms] Balance parens (#5255)
This commit is contained in:
parent
f5dae9b801
commit
5364bb3339
@ -283,9 +283,9 @@ keymap ; => {:a 1, :b 2, :c 3}
|
|||||||
; yang melibatkan collection:
|
; yang melibatkan collection:
|
||||||
(->>
|
(->>
|
||||||
(range 10)
|
(range 10)
|
||||||
(map inc) ;=> (map inc (range 10)
|
(map inc) ;=> (map inc (range 10))
|
||||||
(filter odd?) ;=> (filter odd? (map inc (range 10))
|
(filter odd?) ;=> (filter odd? (map inc (range 10)))
|
||||||
(into [])) ;=> (into [] (filter odd? (map inc (range 10)))
|
(into [])) ;=> (into [] (filter odd? (map inc (range 10))))
|
||||||
; Result: [1 3 5 7 9]
|
; Result: [1 3 5 7 9]
|
||||||
|
|
||||||
; Jika anda mahu lebih fleksibel untuk meletakkan hasil perkiraan,
|
; Jika anda mahu lebih fleksibel untuk meletakkan hasil perkiraan,
|
||||||
|
Loading…
Reference in New Issue
Block a user