Created
April 22, 2017 03:51
-
-
Save ethagnawl/789134fe1b1136d940d21b1f76cf119f to your computer and use it in GitHub Desktop.
doseq with index
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; https://groups.google.com/d/msg/clojure/cBCf_ftFSw4/xBG_SfMeMBAJ | |
(doseq [[idx item] (map-indexed vector a-lazy-seq)] | |
(do-stuff! item idx)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment