Clojure

flatten doc incorrect

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.4
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code
  • Approval:
    Ok

Description

Usage: (flatten x)
Takes any nested combination of sequential things (lists, vectors,
etc.) and returns their contents as a single, flat sequence.
(flatten nil) returns nil.

doc string for (flatten nil) should be removed / altered.

(flatten nil)
;=> ()

Activity

Hide
Ben Smith-Mannschott added a comment -

attached patch to "document that (flatten nil) returns an empty sequence"

Show
Ben Smith-Mannschott added a comment - attached patch to "document that (flatten nil) returns an empty sequence"

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: