swiftlang/swift

[SR-6867] "Chunking" split

オープン

#49,416 opened on 2018/01/29

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Swift (10,719 件のフォーク)batch import
featuregood first issuestandard libraryswift evolution proposal needed

Repository metrics

Stars
 (69,989 個のスター)
PR merge metrics
 (平均マージ 8d 17h) (30d で 510 merged PRs)

説明

Previous ID SR-6867
Radar None
Original Reporter @airspeedswift
Type New Feature
Votes 0
Component/s Standard Library
Labels New Feature, StarterProposal
Assignee None
Priority Medium

md5: d78e8d70fcb68ef04d5d9fac882fce1f

Issue Description:

It is possible to split a collection per element, but not by a count i.e. split an array into subsequences of length 3, or more generally any collection into subsequence of length n. There should be a ability to do this lazily for collections and eagerly for sequences.

コントリビューターガイド