1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-08 15:56:47 +02:00

[clojure/ms] Balance parens (#5255)

This commit is contained in:
Henré Botha
2025-02-13 16:01:49 +01:00
committed by GitHub
parent f5dae9b801
commit 5364bb3339

View File

@@ -283,9 +283,9 @@ keymap ; => {:a 1, :b 2, :c 3}
; yang melibatkan collection:
(->>
(range 10)
(map inc) ;=> (map inc (range 10)
(filter odd?) ;=> (filter odd? (map inc (range 10))
(into [])) ;=> (into [] (filter odd? (map inc (range 10)))
(map inc) ;=> (map inc (range 10))
(filter odd?) ;=> (filter odd? (map inc (range 10)))
(into [])) ;=> (into [] (filter odd? (map inc (range 10))))
; Result: [1 3 5 7 9]
; Jika anda mahu lebih fleksibel untuk meletakkan hasil perkiraan,