A lambda function (anonymous function) is a function without a name, written inline. Denoted with \ in Haskell (looks like λ).
-- Named function:
square x = x * x
-- Equivalent lambda:
\x -> x * x
-- Used inline with map:
map (\x -> x * x) [1,2,3,4] -- [1, 4, 9, 16]
Lambdas are useful for short, one-off functions — no need to give them a name