Skip to content

Instantly share code, notes, and snippets.

@Risto-Stevcev
Created June 17, 2015 21:49
Show Gist options
  • Save Risto-Stevcev/ada331185790c7d38044 to your computer and use it in GitHub Desktop.
Save Risto-Stevcev/ada331185790c7d38044 to your computer and use it in GitHub Desktop.
First-order functions
(defn callfn [f & args]
(apply f args))
(callfn + 1 2 3 4)
; returns 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment