Functional Programming: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:


Java 8 introduced [[Java 8 Lambda Expressions#Overview|lambda expressions]], which allow [[Java_8_Lambda_Expressions#Behavior_Parameterization|behavior parameterization]] and functional programming.
Java 8 introduced [[Java 8 Lambda Expressions#Overview|lambda expressions]], which allow [[Java_8_Lambda_Expressions#Behavior_Parameterization|behavior parameterization]] and functional programming.
=Behavior Parameterization=
Prior to Java 8, behavior parameterization was possible with [[Java_Language#Anonymous_Class|anonymous classes]].
=Closures=
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
:[[Closures]]
</blockquote>

Revision as of 16:20, 21 March 2018

Internal

Overview

Closures and recursion are at the base of the functional programming paradigm.

Java 8 introduced lambda expressions, which allow behavior parameterization and functional programming.

Behavior Parameterization

Prior to Java 8, behavior parameterization was possible with anonymous classes.


Closures

Closures