Bug introduced in 10.0 and fixed in 11.0.0
Related to Mapping (Query) a function at multiple locations in nested data via All, Span, it seems to me that the behavior of MapAt
with Span
in 10.1.0, applied to an Association
, has a bug:
asc = <|"a" -> 1, "b" -> 2, "c" -> 3|>;
MapAt[f, asc, 1 ;; 2]
(* out= <|"a" -> f[1], "b" -> f[2]|> *)
I think it should evaluate the same as:
MapAt[f, asc, {{1}, {2}}]
(* out= <|"a" -> f[1], "b" -> f[2], "c" -> 3|> *)
Do others agree that the disappearance of key "c" is a bug, and which versions are affected?