Skip to content

Instantly share code, notes, and snippets.

@sheldon
Created October 28, 2012 09:42
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 sheldon/3968185 to your computer and use it in GitHub Desktop.
Save sheldon/3968185 to your computer and use it in GitHub Desktop.
(= (
(fn c [l & [a]] (if l (recur (next l) (+ (if a a 0) 1)) 0))
'(1 2 3 3 1)) 5)
error:
java.lang.UnsupportedOperationException: nth not supported on this type: Long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment