06 - The consumer Interface
“Whatever goes in, never comes out” could be the Hollywood movie line to define a consumer, which is no more than a function that receives an argument, consumes it and returns nothing.
“Whatever goes in, never comes out” could be the Hollywood movie line to define a consumer, which is no more than a function that receives an argument, consumes it and returns nothing.
A predicate can be understood as a function that returns a value that is either true or false. The proper use of it can make your code easier to maintain.
Function composition is the ability to create simple and reusable functions that can be combined in order to create more complex functions. Java made this easy
It’s now time to slowly start to elaborate and dig deeper in the particular aspects of functions in Java. The language developers made our life easier.
In the first post of this easy introductory series we have introduced the basic foundations of how to form a lambda expression.It’s now time to learn how we can use them.
In the first post of this series we will look at the basics of how a lambda expression is formed and what do they bring to the table.