Unify naming of chunks a bit more (#74)

This commit is contained in:
Philippe Hausler authored and GitHub committed 2022-03-14 11:47:07 -07:00
1 parent de73225ecc
commit f0f348a680
5 files changed
+22 -30

No files matched your search

@@ -10,7 +10,6 @@
//===----------------------------------------------------------------------===//
extension AsyncSequence {
@inlinable
public func chunks<Collected: RangeReplaceableCollection>(ofCount count: Int, into: Collected.Type) -> AsyncChunksOfCountSequence<Self, Collected> where Collected.Element == Element {
AsyncChunksOfCountSequence(self, count: count)
@@ -20,7 +19,6 @@ extension AsyncSequence {
public func chunks(ofCount count: Int) -> AsyncChunksOfCountSequence<Self, [Element]> {
chunks(ofCount: count, into: [Element].self)
}
}
public struct AsyncChunksOfCountSequence<Base: AsyncSequence, Collected: RangeReplaceableCollection>: AsyncSequence where Collected.Element == Base.Element {