Skip to content

Latest commit

 

History

History
30 lines (30 loc) · 1.25 KB

File metadata and controls

30 lines (30 loc) · 1.25 KB
layout flashcard-topic
title Functional Programming
main_card_title Functional Programming
main_card_bg #6586c3
card_bg #9aacd5
cards
title description
Functional Programming
Functions are like values, can be passed and returned
title description
Lambda Expression
Short-hand syntax for defining functions in Java
title description
Stream
Sequence of elements
title description
Stream API
A collection of methods in Java for processing streams of data in a functional manner
title description
Intermediate Operations
Stream operations that produce another stream as output, such as filter, map, and flatMap
title description
Terminal Operations
Stream operations that produce a single result, such as reduce, collect, and forEach
title description
Optional class
Allow graceful handling of nulls
title description
Functional Interface
Interfaces in Java that define a single abstract method, used as the basis for creating lambda expressions
title description
Method References
Simplify creation of Lambda Expressions
title description
Example Method Reference
Lambda "l -> System.out.println(l)" can be replaced with "System.out::println"