i have one Haskell function, which i don't understand but want to.
i :: Int
i = ((\g x -> g x + g x) (\y -> y)) 3
I know what a lambda function is: a nameless function.
E.g. (\x -> x) 3 takes 3 and returns it, (\x y -> x+y) 3 4 takes 3, 4 and returns 7.
But in this special case i can't interpret it. I hope you can help me.
Btw. the solution for this function is 6.