Skip to content

Instantly share code, notes, and snippets.

@tbl3rd
Created March 3, 2016 02:41
Show Gist options
  • Save tbl3rd/e62f6ba673d24ad7442f to your computer and use it in GitHub Desktop.
Save tbl3rd/e62f6ba673d24ad7442f to your computer and use it in GitHub Desktop.
partition stream
(->> (range)
(partition 2)
(take 5))
;;=> ((0 1) (2 3) (4 5) (6 7) (8 9))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment