-
-
Save amalloy/76362d613a17d59369bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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