Skip to content

Commit d043d02

Browse files
committed
Adding docs for new :or, :select, and :defaults
1 parent 48f4630 commit d043d02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/reference/special_forms.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ Since Clojure 1.13, the `:or` directive also allows the use of explicit keys:
303303
(let [{a :a, b :b, c :c, :as m :or {a 2 b 3 :c 42}} {:a 5}]
304304
[a b c m])
305305
306-
->[5 3 42 {:c 6, :a 5}]
306+
->[5 3 42 {:a 5}]
307307
----
308308

309309
Also since Clojure 1.13, Clojure allows you to bind a name to a map of keys mapped to their default values, based on what you've said in `:or` per above:

0 commit comments

Comments
 (0)