swiftlang/swift

[SR-6691] Sequence.split should have a Lazy equivalent

开放

#49,240 创建于 2018年1月3日

 (9 条评论) (0 个反应) (1 位负责人)Swift (10,719 个派生)batch import
featuregood first issuestandard libraryswift evolution proposal needed

仓库指标

星标
 (69,989 个星标)
PR 合并指标
 (平均合并 8天 17小时) (30 天内合并 510 个 PR)

描述

Previous ID SR-6691
Radar None
Original Reporter @airspeedswift
Type New Feature
Status In Progress
Resolution
Votes 4
Component/s Standard Library
Labels New Feature, StarterBug, StarterProposal
Assignee None
Priority Medium

md5: 1e8d36124b9916625ca75e3f19b449dc

Issue Description:

Sequence.split is eager, but if you are splitting a collection, it should be possible to do it lazily. This could be done via an extension to LazyCollectionProtocol so you could write "a.b.c".lazy.split(separator: ".").

贡献者指南