Skip to content

Instantly share code, notes, and snippets.

@kirai
Created March 14, 2013 05:24
Show Gist options
  • Save kirai/5159021 to your computer and use it in GitHub Desktop.
Save kirai/5159021 to your computer and use it in GitHub Desktop.
Clojure avg function
(defn average[numbers](/ (apply + numbers) (count numbers)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment