ok, thank you.
But let’s take another example:
x = x + 1
in programming language it is assignment, variable binding…
But in mathematics x = x+1 is non-sense.
The Functional programming paradigm is closer to mathematics. So how would a functional style of incrementing look like?
(btw. when speaking about incrementing, I would love to have something like inc(x)
function that simply increments x
.
Is there something like that?)
EDIT: I have created a separate thread about increment/decrement here: Increment, decrement... Can we have inc(), dec() functions in Python? feature request :)