swiftlang/swift

[SR-6867] "Chunking" split

開放

#49,416 建立於 2018年1月29日

 (1 則留言) (0 個反應) (0 位負責人)Swift (10,719 個分叉)batch import
featuregood first issuestandard libraryswift evolution proposal needed

倉庫指標

星標
 (69,989 顆星)
PR 合併指標
 (平均合併 8天 17小時) (30 天內合併 510 個 PR)

描述

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.

貢獻者指南