Skip to content

Instantly share code, notes, and snippets.

@amalloy
Created October 16, 2011 09:11
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 amalloy/76362d613a17d59369bb to your computer and use it in GitHub Desktop.
Save amalloy/76362d613a17d59369bb to your computer and use it in GitHub Desktop.
(fn [lst cnt]
(fn step [frag]
(if (= (count frag) (+ (- (count lst) cnt) 1))
(first frag)
(recur (rest frag) lst cnt))
(step lst)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment