Answers for "haskell lambda"

1

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
Posted by: Guest on October-14-2020

Browse Popular Code Answers by Language