Q:

haskell lambda

-- directly apply to the lambda function in GHCI:
(\x -> x + 1) 4
>> 5 :: Integer

-- giving name to a lambda function:
addOne = \x -> x + 1
0

Related

New to Communities?

Join the community