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

Stuart Halloway made changes -
Field Original Value New Value
Resolution Declined [ 2 ]
Status Open [ 1 ] Closed [ 6 ]
Rich Hickey made changes -
Approval Vetted [ 10003 ]
Status Closed [ 6 ] Reopened [ 4 ]
Resolution Declined [ 2 ]
Rich Hickey made changes -
Fix Version/s Release 1.6 [ 10157 ]
Alex Miller made changes -
Patch Code [ 10001 ]
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. (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-1.patch
Attachment clj-1302-1.patch [ 12758 ]
Alex Miller made changes -
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-1.patch
(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
Attachment clj-1302-2.patch [ 12760 ]
Alex Miller made changes -
Issue Type Defect [ 1 ] Enhancement [ 4 ]
Stuart Halloway made changes -
Approval Vetted [ 10003 ] Screened [ 10004 ]
Rich Hickey made changes -
Approval Screened [ 10004 ] Ok [ 10007 ]
Stuart Halloway made changes -
Resolution Completed [ 1 ]
Status Reopened [ 4 ] Closed [ 6 ]

People

Vote (2)
Watch (4)

Dates

  • Created:
    Updated:
    Resolved: