Create a 'merge' test to join maps together. (#113)
This commit is contained in:
committed by
Colin Jones
parent
b31227c0a8
commit
a4556887b4
@@ -41,6 +41,9 @@
|
||||
"You can also create a new version with an entry removed"
|
||||
(= {__ __} (dissoc {1 "January" 2 "February"} 2))
|
||||
|
||||
"Create a new map by merging"
|
||||
(= {:a 1 :b 2 __ __} (merge {:a 1 :b 2} {:c 3}))
|
||||
|
||||
"Often you will need to get the keys, but the order is undependable"
|
||||
(= (list __ __ __)
|
||||
(sort (keys { 2014 "Sochi" 2018 "PyeongChang" 2010 "Vancouver"})))
|
||||
|
Reference in New Issue
Block a user