Differences in Base.Iterators.partition
and IterTools.partition
#67
Open
Description
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 anArray
, whereasIterTools.partition
returns aTuple
- In the case that the last chunk is smaller than the requested partition size,
Base.Iterators.partition
returns a shorter chunk, whereasIterTools.partition
drops the last values. IterTools.partition
accepts astep
argument that determines the hop size for each chunk.
Metadata
Assignees
Labels
No labels