Clojure

keys and vals consistency not mentioned in docstring

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: Release 1.5
  • Fix Version/s: Release 1.6
  • Component/s: None
  • Labels:
  • Patch:
    Code
  • Approval:
    Ok

Description

(keys m) and (vals m) appear to return stuff in a consistent order, so (= m (zipmap (keys m) (vals m))). This consistency is a useful property. The API docs should state whether it is part of the functions' contract.

Patch: clj-1302-2.patch

  1. clj-1302-1.patch
    05/Feb/14 12:42 AM
    1.0 kB
    Alex Miller
  2. clj-1302-2.patch
    05/Feb/14 11:25 AM
    1.0 kB
    Alex Miller

Activity

People

Vote (2)
Watch (4)

Dates

  • Created:
    Updated:
    Resolved: