Deviopath › Swift

Chunk an Array

Medium · Collections

Split into groups of size. Last group may be shorter. Empty input → []. size >= 1. Write chunk(_:_:).

Next: Rotate Right