RosettaCodeData/Task/Associative-array-Merging/Mathematica/associative-array-merging.math

4 lines
158 B
Plaintext

a1 = <|"name" -> "Rocket Skates", "price" -> 12.75, "color" -> "yellow"|>;
a2 = <|"price" -> 15.25, "color" -> "red", "year" -> 1974|>;
Merge[{a1, a2}, Last]