(()){{}(({})[<f>[({})])}{} Main program.
Implicit input from stdin to stack.
( ) Push
() literal number 1.
Now the content of the stack: [1, x0]
{ } While stack top ≠ 0:
current stack content: [something ≠ 0, x]
{} Pop stack top (something). stack = [x]
( ) Push
({}) Stack top = x. Current stack = [x]
f Evaluate f. Current stack = [f(x)]
< > (suppress the value of f(x), avoid adding it)
[ ] plus the negative of
({}) the top of the stack ( = -f(x) )
In conclusion, this change (x) on the stack to
(f(x)), and then push (x + -f(x))
If it's 0, break loop, else continue.
{} Pop the redundant 0 on the top.
Implicit output stack value to stdout.