Clean up whitespace a bit

This commit is contained in:
Colin Jones 2016-10-06 08:38:28 -05:00
parent 60f1d1ecd3
commit 570fb3b08b
No known key found for this signature in database
GPG Key ID: 558A6B658C368953

View File

@ -41,12 +41,12 @@
"You can also create a new version with an entry removed" "You can also create a new version with an entry removed"
(= {__ __} (dissoc {1 "January" 2 "February"} 2)) (= {__ __} (dissoc {1 "January" 2 "February"} 2))
"Create a new map by merging" "Create a new map by merging"
(= {:a 1 :b 2 __ __} (merge {:a 1 :b 2} {:c 3})) (= {:a 1 :b 2 __ __} (merge {:a 1 :b 2} {:c 3}))
"Specify how to handle entries with same keys when merging" "Specify how to handle entries with same keys when merging"
(= {:a 1 :b __ :c 3} (merge-with + {:a 1 :b 1} {:b 1 :c 3})) (= {:a 1 :b __ :c 3} (merge-with + {:a 1 :b 1} {:b 1 :c 3}))
"Often you will need to get the keys, but the order is undependable" "Often you will need to get the keys, but the order is undependable"
(= (list __ __ __) (= (list __ __ __)
(sort (keys { 2014 "Sochi" 2018 "PyeongChang" 2010 "Vancouver"}))) (sort (keys { 2014 "Sochi" 2018 "PyeongChang" 2010 "Vancouver"})))
@ -59,5 +59,5 @@
(= {:a __ :b __} (= {:a __ :b __}
(into {} (into {}
(map (map
(fn[[k v]] [k (inc v)]) (fn [[k v]] [k (inc v)])
{:a 1 :b 2}))) {:a 1 :b 2})))