Skip to content

Instantly share code, notes, and snippets.

@sherpc
Created March 11, 2014 06:32
Show Gist options
  • Save sherpc/9480616 to your computer and use it in GitHub Desktop.
Save sherpc/9480616 to your computer and use it in GitHub Desktop.
(defn if-column
[data column f]
(if-not column
data
(f column data)))
(defn where* [data condition-func]
(if-column data condition-func filter))
(defn limit* [data lim]
(if-column data lim take))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment