February 2014
Beginner
1248 pages
62h 25m
English
Functional programming is accomplished with lambda expressions. A lambda expression represents an anonymous method—a shorthand notation for implementing a functional interface, similar to an anonymous inner class (Section 12.11). The type of a lambda expression is the type of the functional interface that the lambda expression implements. Lambda expressions can be used anywhere functional interfaces are expected. From this point forward, we’ll refer to lambda expressions simply as lambdas. We show basic lambda syntax in this section and discuss additional lambda features as we use them throughout this and later chapters.
A lambda consists of a parameter list followed by the arrow token (->) and a body, ...
Read now
Unlock full access