It is sometimes desirable to get the forward index of an element but searching from the end of a bidirectionally iterable collection. For example, consider finding the string suffix following the last period.
This is similar to C++'s `find_last_of` or Python's `rindex`.
The text was updated successfully, but these errors were encountered:
@natecook1000 The docs now say there is a `firstIndex` and a `lastIndex` but no `index`. Yet there is no compile error when using `index`. Shouldn't this be a warning at least? We should all be migrating to `firstIndex` but nothing calls out the change. I've been using Swift 4.2 since WWDC and I only just noticed this by accident.
ddunbar commentedMay 13, 2016
Additional Detail from JIRA
md5: 2e4233e0695a5d1edce92ed2ae1572d9
Issue Description:
It is sometimes desirable to get the forward index of an element but searching from the end of a bidirectionally iterable collection. For example, consider finding the string suffix following the last period.
This is similar to C++'s `find_last_of` or Python's `rindex`.
The text was updated successfully, but these errors were encountered: