clojure.core/map¶
Returns a lazy sequence consisting of the result of applying f to the set of first items of each coll, followed by applying f to the set of second items in each coll, until any one of the colls is exhausted. Any remaining items in other colls are ignored. Function f should accept number-of-colls arguments. Returns a transducer when no collection is provided.
Examples¶
Note by Howard Abrams¶
To create a hashmap, use the hash-map function, or the {...} sugar:
(= {:a 1 :b 2 :c 3} (hash-map :a 1 :b 2 :c 3))
See also¶
- clojure.core/map-indexed (4)
- clojure.core/pmap (3)
- clojure.core/amap
- clojure.core/mapcat (7)
- clojure.core/keep (8)
- clojure.core/juxt (7)
- clojure.core/mapv (3)
- clojure.core/reduce (22)
- clojure.core/run! (1)
- clojure.core/filter (6)
Content from the matching ClojureDocs page, with authors credited on each contribution.