index(n, stepsFrom: i)

M-x findr-query-replace

\<advance(\([^:]+?\),\([
]+\)by: *\([^(),]*\|[^(),]+([^()]*)[^(),]*\)\(,\(?:[
]+\)limit: *\(?:[^()]*\|[^()]+([^()]*)[^()]*\)\)?)

index(\3,\2stepsFrom: \1\4)
This commit is contained in:
Dave Abrahams
2016-03-25 17:54:39 -07:00
parent 11259d1d14
commit 01127b32d5
31 changed files with 157 additions and 157 deletions

View File

@@ -154,7 +154,7 @@ ${orderingRequirementForComparable}
return unsafeBufferPivot - bufferPointer.startIndex
}
if let offset = maybeOffset {
return advance(startIndex, by: numericCast(offset))
return index(numericCast(offset), stepsFrom: startIndex)
}
% if preds: