Details
-
Type:
Enhancement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: Release 1.5
-
Component/s: None
-
Labels:None
-
Patch:Code and Test
-
Approval:Ok
Description
The contains? function, given a collection which is not an associative (Map, Set, String, array), returns false instead of throwing an exception.
This is a subject of confusion when people call contains? on sequential collections like lists, and on associative collections which do not implement the Associative interface.
Other predicates, such as even?, throw an exception when passed arguments of an invalid type.
Attachments
Activity
Stuart Sierra
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Patch | Code and Test [ 10002 ] | |
| Attachment | CLJ-932-0001.patch [ 10921 ] |
Rich Hickey
made changes -
| Fix Version/s | Backlog [ 10035 ] | |
| Fix Version/s | Release 1.5 [ 10150 ] |
Aaron Bedra
made changes -
| Approval | Vetted [ 10003 ] | Screened [ 10004 ] |
Rich Hickey
made changes -
| Approval | Screened [ 10004 ] | Ok [ 10007 ] |
Stuart Halloway
made changes -
| Resolution | Completed [ 1 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |