Skip to content

Instantly share code, notes, and snippets.

@martintrojer
Created April 4, 2012 21:00
Show Gist options
  • Select an option

  • Save martintrojer/2305618 to your computer and use it in GitHub Desktop.

Select an option

Save martintrojer/2305618 to your computer and use it in GitHub Desktop.
partitions
(defn my-part [n col]
(when-not (empty? col)
(lazy-seq (cons (take n col) (my-part n (drop n col))))))
(->>
(iterate inc 1)
(my-part 4)
(drop 55)
(take 10))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment