Details
-
Type:
Defect
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Neither of these work as expected:
(match [ {:type :consumed :value 4}]
[({:uid uid :modifiers ms} :only [:uid :modifiers])] :a0)
(match [ {:type :consumed :value 4}]
[{:uid uid :modifiers ms} ] :a0)
Tried these versions:
"0.2.0-alpha10-SNAPSHOT"
"0.2.0-alpha9"
Attachments
Activity
Jason Jackson
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | patch [ 10906 ] |
Jason Jackson
made changes -
| Attachment | 0001-map-matching-always-checks-for-presence-of-key-even-.patch [ 11215 ] |
Kevin Lynagh
made changes -
| Attachment | 0001-Map-matching-should-always-check-for-presence-of-key.patch [ 11426 ] |
David Nolen
made changes -
| Resolution | Completed [ 1 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
I tried to use :when to detect when key is not found. But this doesn't work either.
(match {:foo 3}
{:uid (uid :when #(not (nil? %)))} :a0)