Uploaded image for project: 'Clojure'
  1. CLJ-1098

Extend CollFold and IKVReduce to nil

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects versions: None
    • Fix versions: Release 1.5
    • Labels:
      None
    • Approval:
      Ok
    • Patch:
      Code and Test

      Description

      Currently, reduce-kv and fold throw when used on nil, because their respective protocols don't extend to nil. This seems strange, since Clojure tends to handle nils gracefully where possible, especially in places where collections are expected.

      See thread https://groups.google.com/d/topic/clojure/tGI8sIKQoh0/discussion

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bendlas Herwig Hochleitner
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: