Changes for clojure.core/map

AtKaaZ on Fri, 12 Oct 2012
;; mapping over a hash-map applies (into) first. 
;; need to use functions that deal with arrays (fn [[key val]] ...)
(map pprint {:key :val :key1 :val1})
([:key :val]
[:key1 :val1]
nil nil)

;;above, the pprint output appears to be part of the return value but it's not:
(hash-set (map pprint {:key :val :key1 :val1}))
[:key :val]
[:key1 :val1]
#{(nil nil)}

(map second {:key :val :key1 :val1})
(:val :val1)
AtKaaZ on Fri, 12 Oct 2012
;; mapping over a hash-map applies (into) first. 
;; need to use functions that deal with arrays (fn [[key val]] ...)
(map pprint {:key :val :key1 :val1})
([:key :val]
[:key1 :val1]
nil nil)

;;above, the pprint output and the return value appear be the same but they are not:
(hash-set (map pprint {:key :val :key1 :val1}))
[:key :val]
[:key1 :val1]
#{(nil nil)}

(map second {:key :val :key1 :val1})
(:val :val1)
boxie on Thu, 03 Nov 2011
;; mapping over a hash-map applies (into) first. 
;; need to use functions that deal with arrays (fn [[key val]] ...)
(map pprint {:key :val :key1 :val1})
([:key :val]
[:key1 :val1]
nil nil)

(map second {:key :val :key1 :val1})
(:val :val1)
boxie on Thu, 03 Nov 2011
;; mapping over a hash-map applies (into) first. 
;; need to use functions that deal with arrays (fn [key val] ...)
(map pprint {:key :val :key1 :val1})
([:key :val]
[:key1 :val1]
nil nil)

(map second {:key :val :key1 :val1})
(:val :val1)
boxie on Thu, 03 Nov 2011
;; mapping over a hash-map applies (into) first. 
;; need to use functions that have 2 args #(%1 %2)...
(map pprint {:key :val :key1 :val1})
([:key :val]
[:key1 :val1]
nil nil)