Book Image

Hands-On Functional Programming with Java [Video]

By : Hristijan Stojkoski
5 (1)
Book Image

Hands-On Functional Programming with Java [Video]

5 (1)
By: Hristijan Stojkoski

Overview of this book

Functional programming, a popular programming paradigm used to simplify many tasks, will help you write flexible and succinct code. This paradigm makes programs easier to reason with because they're deterministic (one specific input will always give you the same output). This course takes a thought-leadership approach, gently introduces you to Functional Programming, and takes you all the way to becoming a master of the paradigm. You'll then learn how to work with higher-order functions, lambda functions, collections and more. You'll learn how to apply the best data structures and algorithms that optimize functions and also how to reuse and refactor functional blocks of code. This course is updated to Java 12 so that you will be ahead of the crowd. By the end of the course, you will have mastered the concepts regarding functional programming along with OOP, to build robust and highly testable applications. The code files for this course are available at - https://github.com/PacktPublishing/Hands-On-Functional-Programming-with-Java
Table of Contents (6 chapters)
Chapter 5
Advanced Stream Operations
Content Locked
Section 2
Using Reduce for Advanced Transformations
This video will teach you how to use reduce to simulate the results from other Stream operations using a practical example. - Simulate the work of the max operation using reduce - Simulate the work of the sum operation using reduce - Use reduce to concatenate elements of the stream to a single String