There are some differences between Base.Iterators.partition and IterTools.partition. I brought it up on Slack and @oxinabox asked me to file an issue.
Base.Iterators.partition returns each chunk as an Array, whereas IterTools.partition returns a Tuple
- In the case that the last chunk is smaller than the requested partition size,
Base.Iterators.partition returns a shorter chunk, whereas IterTools.partition drops the last values.
IterTools.partition accepts a step argument that determines the hop size for each chunk.