Skip to content

Commit f4a69ce

Browse files
committed
Update to Java commit 7529bc9 (2020-12-11): CLJ-2169: add nullary, unary overloads of conj to its :arglists
1 parent dd781a7 commit f4a69ce

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Clojure/Clojure.Source/clojure/core.clj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@
7373
rest (fn ^:static rest [x] (. clojure.lang.RT (more x))))
7474

7575
(def
76-
^{:arglists '([coll x] [coll x & xs])
76+
^{:arglists '([] [coll] [coll x] [coll x & xs])
7777
:doc "conj[oin]. Returns a new collection with the xs
78-
'added'. (conj nil item) returns (item). The 'addition' may
79-
happen at different 'places' depending on the concrete type."
78+
'added'. (conj nil item) returns (item).
79+
(conj coll) returns coll. (conj) returns [].
80+
The 'addition' may happen at different 'places' depending
81+
on the concrete type."
8082
:added "1.0"
8183
:static true}
8284
conj (fn ^:static conj

0 commit comments

Comments
 (0)