swiftlang/swift

[SR-6867] "Chunking" split

Open

#49 416 ouverte le 29 janv. 2018

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)Swift (10 719 forks)batch import
featuregood first issuestandard libraryswift evolution proposal needed

Métriques du dépôt

Stars
 (69 989 stars)
Métriques de merge PR
 (Merge moyen 8j 17h) (510 PRs mergées en 30 j)

Description

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.

Guide contributeur