RosettaCodeData/Task/Associative-array-Merging/Uiua/associative-array-merging.uiua

20 lines
322 B
Text
Raw Permalink Normal View History

2025-02-27 18:35:13 -05:00
Base ← map {"name" "price" "color"} {"Rocket Skates" 12.75 "yellow"}
Update ← map {"price" "color" "year"} {15.25 "red" 1974}
&pBase
&pUpdate
UnmapAndPop ← ◌: °map
GetAndMap ← ˜map˜get
°⊂ UnmapAndPop Base UnmapAndPop Update
Base.
GetAndMap
.:◌:
Update
GetAndMap
&p"\n"
&p⊂
&p"\n"
&pBase
&pUpdate