Skip to content

Instantly share code, notes, and snippets.

@ulises ulises/core.clj
Created Apr 21, 2013

What would you like to do?
(defmacro p-source [form]
"Declare an expresion as a source of data."
(if (and (sequential? form)
(instance? clojure.lang.Fn (first form)))
`(each ~(first form) ~(rest form))
(if (sequential? form)
`(map immediately ~form)
`(list (immediately ~form)))))
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.