conj docstring and arglists don't mention 0- and 1-arity versions

Description

See: https://github.com/clojure/clojure/blob/clojure-1.9.0-alpha14/src/clj/clojure/core.clj#L76

Arglists should be '([] [coll] [coll x] [coll x & xs])

Docstring should mention "(conj coll) returns coll" and "(conj) returns an empty vector", and also the fact that "hence it can be used as a reducing function", clarifying the reason to use [] as the default.

Environment

None

Activity

Show:
Alex Miller
December 6, 2018, 5:08 AM

I would like to accept this patch, but I need a signed CA and a properly formatted patch.

Michał Marczyk
December 6, 2018, 4:34 PM

This ticket appears to be a duplicate of CLJ-2169, which also has a patch attached (dated 2017-05-27; the 0002 patch handles both :doc and :arglists) and is currently marked "Triaged" (also since 2017-05-27).

Alex Miller
December 7, 2018, 4:05 AM

Dupe of CLJ-2169

Duplicate

Assignee

Unassigned

Reporter

jcr

Approval

Triaged

Patch

None

Affects versions

Priority

Trivial
Configure