I guess there is no way to write an extension func...
# getting-started
h
I guess there is no way to write an extension function for
Int
that assigns its result to its receiver, just like the increment operator
++
, right? I'd like to write something like
while (x++ in 1..10)
with the option of controlling the increment amount of
i++
I had hoped for an infix func to do something like
while (x incBy 3 in 1..10)
.