ZVON > References > Haskell reference |
Intro / Search / ZVON |
| 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 ] |
Input: map (\x -> 3*x + x/4) [1,2,3,4]
Output: [3.25,6.5,9.75,13.0]
Input: foldr1 (\x y -> 2*x + y) [1,2,3,4]
Output: 16