Skip to content

Instantly share code, notes, and snippets.

@dagda1
Last active August 28, 2015 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dagda1/2fb86f7a3a10073b205b to your computer and use it in GitHub Desktop.
Save dagda1/2fb86f7a3a10073b205b to your computer and use it in GitHub Desktop.
; 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