Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (11 sloc) 312 Bytes

clj-assoc-seq

assoc-seq is similar to assoc except taking key-seq and value-seq.

Usage

(use 'hozumi.assoc-seq)

(assoc-seq {} [:a] [1])
;=> {:a 1}
(assoc-seq {} [:a :b :c] [1 2 3])
;=> {:c 3, :b 2, :a 1}

Installation

Leiningen [org.clojars.hozumi/clj-assoc-seq "1.0.0-SNAPSHOT"]