Can someone explain to me how lambda works in Haskell?
For eg. add' = \x -> (\y -> x+y) or foldl (\x _ -> x+1) 0 [1,2,3] == 3
I know what the results are and what the functions do, but I don't understand why do we need lambda expression or what does lambda do in the functions?
Thank you very much