Skip to content

Instantly share code, notes, and snippets.

Created October 9, 2010 17:59
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 anonymous/618424 to your computer and use it in GitHub Desktop.
Save anonymous/618424 to your computer and use it in GitHub Desktop.
"([n coll] [n step coll] [n step pad coll]); Returns a lazy sequence of lists of n items each, at offsets step apart. If step is not supplied, defaults to n, i.e. the partitions do not overlap. If a pad collection is supplied, use its elements as necessary to complete last partition upto n items. In case there are not enough padding elements, return a partition with less than n items."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment