Swift Standard Library should provide a zip() function that wraps Zip2

Originator:kristopherdjohnson
Number:rdar://17826856 Date Originated:28-Jul-2014 06:06 AM
Status:Duplicate/17292393 Resolved:
Product:Developer Tools Product Version:Xcode 6.0 (6A267n)
Classification:Enhancement Reproducible:N/A
 
Summary:
The Swift Standard Library currently provides a Zip2 sequence type and a ZipGenerator2 generator type that can be used to create a sequence of 2-tuples from the elements of two sequences. For consistency with other sequence-based library elements (map/filter/etc.), it would be helpful to provide a zip() function (or zip2() function) that has the expected capitalization.

Library designers could provide overloads for zip() that handle specific sequence/collection types, different numbers of sequences, and/or different result types.

Steps to Reproduce:
Do a case-sensitive search for "zip" in the Standard Library

Expected Results:
Find a function with "zip" in the name.

Actual Results:
Find no "zip" function, so you think you have to write one yourself.

Version:
Xcode 6.0 (6A267n)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!