For comparison, here's the same thing in Haskell
f = \x -> \y -> x + y
g = f 6
with the added bonus of automatic documentation ghci> :t f
f :: Integer -> Integer -> Integer
ghci> :t g
g :: Integer -> Integer
ghci> :t uncurry f
uncurry f :: (Integer, Integer) -> Integer