[swift-evolution] [pitch] Character.unicodeScalars

Brent Royal-Gordon brent at architechies.com
Thu May 11 01:13:43 CDT 2017

> On May 10, 2017, at 4:51 PM, Ben Cohen via swift-evolution <swift-evolution at swift.org> wrote:
> Add a unicodeScalars property to Character, presending a lazy view of the scalars in the character, along similar lines to the one on String.

Might it make sense conform `Character` itself to `Collection`, rather than using a view?

Otherwise, I'm in favor. (Though it'd be nice to have *some* way to manipulate the `UnicodeScalar`s inside a `Character`, even if `RangeReplaceableCollection`'s interface would make preserving its invariants too difficult. That could wait, though.)

Brent Royal-Gordon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170510/7d46aec0/attachment.html>

More information about the swift-evolution mailing list