apple / swift-async-algorithms

Async Algorithms for Swift
Apache License 2.0
2.95k stars 147 forks source link

Fix `chunks(countOf: 1)` #293

Closed FranzBusch closed 1 year ago

FranzBusch commented 1 year ago

Motivation

We were failing to properly chunk a sequence if the count was 1 since we only checked for count equality on the second element but never the first one.