diff options
author | Mathieu Gemard <mathieu.gemard@gmail.com> | 2021-01-15 11:31:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 11:31:24 +0100 |
commit | 13991f615a155854465b40882e468d785e15253a (patch) | |
tree | 2dab4d2e2b549d4d3a754d34450785f414a78d5d /clojure.html.markdown | |
parent | c351cab657897229e1d6b826a53399bca129b489 (diff) |
Fix the as-> macro exemple (#4054)
Diffstat (limited to 'clojure.html.markdown')
-rw-r--r-- | clojure.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clojure.html.markdown b/clojure.html.markdown index 16771e25..20812a9b 100644 --- a/clojure.html.markdown +++ b/clojure.html.markdown @@ -298,8 +298,8 @@ keymap ; => {:a 1, :b 2, :c 3} (as-> [1 2 3] input (map inc input);=> You can use last transform's output at the last position (nth input 2) ;=> and at the second position, in the same expression - (conj [4 5 6] input [8 9 10])) ;=> or in the middle ! - + (conj [4 5 6] input 8 9 10)) ;=> or in the middle ! + ; Result: [4 5 6 4 8 9 10] ; Modules |