Re: [swift-corelibs-dev] index indexes and ranges of String

2017-01-06 Thread Carlos García via swift-corelibs-dev
Thanks Tony Done! Carlos > On 04 Jan 2017, at 17:12, Tony Parker wrote: > > Hi Carlos, > > Thanks for proposing this. Would you mind sending it out to swift-dev or > swift-evolution as well? The authors of the Swift standard library are more > likely to see your message there. > > - Tony

Re: [swift-corelibs-dev] index indexes and ranges of String

2017-01-04 Thread Tony Parker via swift-corelibs-dev
Hi Carlos, Thanks for proposing this. Would you mind sending it out to swift-dev or swift-evolution as well? The authors of the Swift standard library are more likely to see your message there. - Tony > On Dec 31, 2016, at 11:53 AM, Carlos García via swift-corelibs-dev > wrote: > > Hi, > >

[swift-corelibs-dev] index indexes and ranges of String

2017-01-03 Thread Carlos García via swift-corelibs-dev
Hi, I think this is important enough and useful for we to be in the core standard library extension String { func index(of string: String, options: String.CompareOptions = .literal) -> String.Index? { return range(of: string, options: options)?.lowerBound } func indexes(of