[swift-evolution] gyb template for ZipSequence
dabrahams at apple.com
Wed Nov 9 23:29:17 CST 2016
on Wed Nov 09 2016, Alexander Momchilov <swift-evolution at swift.org> wrote:
> This stack overflow question
> <http://stackoverflow.com/q/40517760/3141234> asks about using zip
> with more than 3 sequences. I referred the OP to the generics
> which describes the (current) lack of varadiac generics, which
> prohibits the ability to express (in pure Swift) the ability to write
> ZipSequence for an arbitrary number of sequences.
> I wrote up a (rough) gyb template for creating
> ZipSequences. <https://github.com/amomchilov/ZipNsequence/blob/master/ZipNSequence.swift.gyb>
> Is there any interest in adding something like this to the stdlib?
Yes, it's always been part of the (eventual) plan, so it's cool to see.
It's out of scope for phase 1 of the Swift 4 planning work, but when
phase 2 comes along you should submit a proposal!
More information about the swift-evolution