conj has out-of-date :arglists

Description

conj has had nullary and unary overloads since 1.7.0, but its :arglists still only list [coll x] and [coll x & xs]:

Proposed:

Patch: clj-2169-3.patch

Screened by: Alex Miller

Environment

None

Attachments

3

Activity

Show:

Alex MillerDecember 11, 2020 at 7:08 PM

Applied for 1.10.2-rc1

Alex MillerDecember 11, 2020 at 4:50 PM

Updated patch, attribution retained

Rich HickeyDecember 11, 2020 at 4:09 PM

doesn’t document unary?

Michał MarczykMay 28, 2017 at 12:05 AM

It occurs to me that perhaps the docstring could be updated too to explain (conj).

The new 0002-… patch includes the :arglists change of the 0001-… patch and adds the sentence "(conj) returns []." to the docstring immediately after "(conj nil item) returns (item).".

Fixed

Details

Assignee

Reporter

Labels

Approval

Ok

Patch

Code

Priority

Fix versions

Created May 27, 2017 at 4:20 PM
Updated December 11, 2020 at 7:08 PM
Resolved December 11, 2020 at 7:08 PM