> On Jul 27, 2016, at 4:00 PM, Jacob Bandes-Storch <[email protected]> wrote:
>
> I figured that sentence was in reference to the methods currently named
> flatten().
>
> The proposal also said that the String-based version of joined(separator:)
> (which are implemented separately) should have a default separator of "".
> There is currently no flatten() for collections of Strings.
>
> https://github.com/apple/swift/blob/c6e828f761fc30f7ce444431de7da52814f96595/stdlib/public/core/String.swift#L769
>
> <https://github.com/apple/swift/blob/c6e828f761fc30f7ce444431de7da52814f96595/stdlib/public/core/String.swift#L769>
>
> I doubt there would be a performance difference between adding `func joined()
> { return joined(separator: "") }` and changing the parameter to `separator:
> String = "”`.
I’ll let a stdlib guru comment on this :-)
-Chris
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution