I thought more languages did this but at least nix and ocaml do not actually behave like I thought.
In Ruby however it is a bit more ugly
def f x
x + 1
end
puts f f 1
> 3In Ruby however it is a bit more ugly
def f x
x + 1
end
puts f f 1
> 3