[swift-evolution] [pitch] Character.unicodeScalars
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.)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution