Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
;; Example:
;; (doseq-indexed idx [name names]
;; (println (str idx ". " name)
(defmacro doseq-indexed-functional [index-sym [item-sym coll] & body]
`(doseq [[~item-sym ~index-sym]
(map vector ~coll (range))]
Copy link

viebel commented May 9, 2016

Here is a live version of this gist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment