Javaslang - Functional Java Done Right
summary
States Java 8 lacks many functional primitives and shows concrete fixes: Javaslang supplies persistent immutable collections that reuse structure to save memory, functional interfaces up to arity 8 with checked variants, and richer stream-like APIs (distinctBy, groupBy, cycle, foldLeft/foldRight). It provides Option -> empty or present via Iterable integration, Try for checked exceptions that captures failures instead of throwing, lifting to turn exceptions into Option, currying and memoize to cache pure functions, tuples with map/transform, and pattern matching over values and fields.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:21Limitations of Java 8
- 5:22Functional programming core
- 10:10Introducing Javaslang
- 14:07Lambda and tuple basics
- 22:32Control structures
- 28:43Collections API
- 34:44Pattern matching and wrap-up
related talks
48mJavaslang - Functional Java Done Right
52mJavaslang - Functional Java Done Right
51mFunctional Programming with Java
52mFunctional Programming with Java 8
36mHow functional programming change my Java code
48mEmbrace the Func - How Far has Functional Programming Come in Java?
46mDesigning Functional Programs
57mTen Common mistakes made in Functional Java
