ZVON > References > Haskell reference
| Indexes | >> Syntax << | Prelude | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Name lambda abstractions
Description functions can be defined anonymously via a lambda abstraction
Related:
Bibliography: lambda abstraction [ FOLDOC ]
Lambda Abstractions [ A Gentle Introduction to Haskell ]

Example 1

Input: map (\x -> 3*x + x/4) [1,2,3,4]

Output: [3.25,6.5,9.75,13.0]

Example 2

Input: foldr1 (\x y -> 2*x + y) [1,2,3,4]

Output: 16