Created
April 4, 2012 21:00
-
-
Save martintrojer/2305618 to your computer and use it in GitHub Desktop.
partitions
This file contains hidden or 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
| (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