2 ms·
in general `f()()` means call the function returned by f() with no arguments. So f()()() means call the function returned by f()() with no arguments. In this
by dagw 9y ago
in general `f()()` means call the function returned by f() with no arguments. So f()()() means call the function returned by f()() with no arguments. In this case recurse() returns itself so
recurse == recurse()()()()...
It's more of an interesting observation than anything useful
The syntax can occasionally be useful if you have a function the generates function, but then you'd be calling initial function with some argument like this:
f_x = f(x)()
f_y = f(y)()