4 ms·
Those exist, as part of "RandomAccessIndexType", to which "Int" conforms: 1.advancedBy(1) == 2 This is different than ++, though, because ++ mutates the value
by cballard 11y ago
Those exist, as part of "RandomAccessIndexType", to which "Int" conforms:
1.advancedBy(1) == 2
This is different than ++, though, because ++ mutates the value, and advancedBy(:) returns a new one.