Created
September 6, 2014 12:09
-
-
Save dagda1/94c2823d47645f26f7aa 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
(= (take 5 ( | |
(fn [func se] | |
(lazy-seq (reduce (fn [acc item] | |
(conj acc (func (last acc) item)) | |
)[(first se)] (rest se)))) + (range)))[0 1 3 6 10]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment