First-class functions form the core of much of functional programming. Learn what first-class functions are and why they're so important.
- [Instructor] The third and final major concept … of functional programming … is something called first-class functions. … This is where things really start to get interesting … in functional programming … and where the power and flexibility … of functional programming really start to shine through. … So what exactly do we mean … when we talk about first-class functions? … Well, in object-oriented programming, … we generally treat data and functions … as entirely different types of entities. … We would probably never think of, for example, … creating an array of functions … or passing functions as arguments to other functions, … or even stranger, … returning functions from other functions. … However, with functional programming, … it's not only possible to do these things, … it's in fact a source of tremendous flexibility. … In Java, first-class functions are done … using the function interface, … which allows us to work with functions in a very similar way … to how we normally treat other objects or values. …
Skill Level Advanced
Java Design Patterns: Structuralwith Bethan Palmer1h 38m Intermediate
1. Introduction to Functional Programming
2. First-Class Functions
3. Working with Streams in Java
4. Advanced Concepts
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.