Skip to content

Instantly share code, notes, and snippets.

@dagda1

dagda1/for.clj

Last active Aug 28, 2015
Embed
What would you like to do?
; xs = '{a {p 1, q 2} b {m 3, n 4}}
(for [[x y] xs]
(for [[a b] y]
[[a x] b]))
; this produces
; (({[a p] 1} {[a q] 2}) ({[b m] 3} {[b n] 4}))
;
; I require
; '{[a p] 1, [a q] 2 [b m] 3, [b n] 4}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.