into docstring doesn't mention 0- and 1-arity versions

Description

into has had nullify and unary overloads since e547d35, but the docstring doesn’t mention them. It would make sense to follow the pattern introduced for conj in .

Proposed:

Make docstring mention those two arities, optionally mention that it can be used as a reducing function. We see from the patch in that no mention of usage as a reduction function was done.

Approach:

Follow the pattern for `conj`, a la (into x) returns x. (into) returns []

Patch:

CLJ-2290-4.patch

Prescreened by: Jarrod Taylor

Screened by: Alex Miller

Environment

None

Attachments

4

Activity

Show:

Alex Miller February 8, 2024 at 10:45 PM

Released in 1.12.0-alpha6

Alex Miller February 1, 2024 at 12:19 PM

Patch updated

Rich Hickey January 31, 2024 at 3:23 PM

Sorry, that also doesn't parse well. How about (into x) returns x

Alex Miller January 30, 2024 at 7:53 PM

Quotes added, attribution retained

Rich Hickey January 26, 2024 at 4:56 PM

maybe “(into to) returns ‘to’.” ? since “returns to” is a common subphrase

Fixed

Details

Assignee

Reporter

Approval

Ok

Patch

Code

Priority

Affects versions

Fix versions

Created December 13, 2017 at 6:27 PM
Updated February 8, 2024 at 10:45 PM
Resolved February 8, 2024 at 10:45 PM