Re: [swift-users] range(of:options:range:locale:) with partial ranges

2017-09-26 Thread Martin R via swift-users
> On 22. Sep 2017, at 23:55, Ben Cohen wrote: > > In order to be able to use pos… this function would need to be converted from > it’s current signature (that takes a concrete Range) to be generic over any > RangeExpression.In this case of this method, the range is optional – and in > case of

Re: [swift-users] range(of:options:range:locale:) with partial ranges

2017-09-22 Thread Ben Cohen via swift-users
In order to be able to use pos… this function would need to be converted from it’s current signature (that takes a concrete Range) to be generic over any RangeExpression.In this case of this method, the range is optional – and in case of nil (which is the default) there would be insufficient con