The Busy Java Developer's Guide to Scala: Functions
Scala is a new programming language incorporating the most important concepts of object-oriented and functional languages and running on top of the Java Virtual Machine as standard "dot-class" files. Sporting the usual object-oriented concepts as classes and inheritance, Scala also offers a number of powerful functional features, such as algebraic data types, immutable objects by default, pattern matching, closures, anonymous functions and currying, and more. Combined with some deep support for XML generation and consumption, Scala offers Java programmers an opportunity to write powerful programs with concise syntax for a new decade of Java programming.
In this presentation, we focus on the parts of Scala are are functional in nature (rather than object-oriented), and study things like currying, partial function application, writing generic functional code, and some of the functional design approaches that can make coding easier.
In this presentation, we focus on the parts of Scala are are functional in nature (rather than object-oriented), and study things like currying, partial function application, writing generic functional code, and some of the functional design approaches that can make coding easier.