It’s not clear to me what the difference in definition is - even reading the CS definition on Wikipedia, both cases reference the mathematical definition. What am I missing?
It's about repeated calls e.g.
a.f(x).f(x)
results in the same state as a.f(x)
Not about repeated application. E.g. f(f(x)) = f(x)