Swift’s PermutationGenerator is misleadingly named

Originator:an00na
Number:rdar://20698481 Date Originated:25-Apr-2015 09:16 AM
Status:Duplicate of 20089221 (Open) Resolved:
Product:Developer Tools Product Version:Swift 1.2
Classification:Enhancement Reproducible:Not Applicable
 
Swift’s PermutationGenerator is misleadingly named. It's not about permutation at all. It's just indexing collection with an index sequence. It should be named something else and Swift should offer a real permutation generator like this: https://docs.python.org/3.4/library/itertools.html#itertools.permutations.

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!