Skip to content

Instantly share code, notes, and snippets.

@dagda1
Created September 6, 2014 12:09
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 dagda1/94c2823d47645f26f7aa to your computer and use it in GitHub Desktop.
Save dagda1/94c2823d47645f26f7aa to your computer and use it in GitHub Desktop.
(= (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