Clojure

reduce docstring args don't match docs

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.2
  • Component/s: None
  • Labels:
    None
  • Approval:
    Ok

Description

The reduce docstring says lists the arg forms as ([f coll] [f start coll]) but the docstring uses "val" instead of "start" in the description. To fix, replace all "val" with "start".

clojure.core/reduce
([f coll] [f start coll])
f should be a function of 2 arguments. If val is not supplied,
returns the result of applying f to the first 2 items in coll, then
applying f to that result and the 3rd item, etc. If coll contains no
items, f must accept no arguments as well, and reduce returns the
result of calling f with no arguments. If coll has only 1 item, it
is returned and f is not called. If val is supplied, returns the
result of applying f to val and the first item in coll, then
applying f to that result and the 2nd item, etc. If coll contains no
items, returns val and f is not called.

Activity

Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - stu said: [file:aybc_syEOr37oxeJe5cbLA]
Hide
Assembla Importer added a comment -

stu said: Updating tickets (#317, #344)

Show
Assembla Importer added a comment - stu said: Updating tickets (#317, #344)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: