Skip to main content

Timeline for Replace and Association

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
Dec 14, 2015 at 19:49 comment added Stefan R I'll add that pattern-matching of this kind for Association is in active development internally.
Dec 12, 2015 at 20:16 vote accept Patrick Stevens
Dec 12, 2015 at 16:10 comment added J. M.'s missing motivation The tedious-looking workaround: {<|8 -> 7|>, <|"a" -> "red", 6 -> 3|>} /. a_Association /; KeyMemberQ[a, "a"] && a["a"] === "red" :> Nothing. The last example can also be done with KeyMap[]: KeyMap[# /. "a" -> "b" &, <|"a" -> 2|>].
Dec 12, 2015 at 16:03 comment added eldo A very nice explanation, +1
Dec 12, 2015 at 15:55 history answered m_goldberg CC BY-SA 3.0