3 ms·
What about a function named succ or next? They would make things a bit more explicit, and succ has its own tradition.
by alricb 11y ago
What about a function named succ or next? They would make things a bit more explicit, and succ has its own tradition.
- cballard 11y agoThose 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.
- jheriko 11y agotrue. although we would call it successor right? shortening function names with abbreviations ought to have died when fortran relaxed that restriction. XD