Java Reference
In-Depth Information
Advanced Exercises
1. Write an implementation of the
Stream
function
map
using only
reduce
and lambda
expressions. You can return a
List
instead of a
Stream
if you want.
2. Write an implementation of the
Stream
function
filter
using only
reduce
and
lambda expressions. Again, you can return a
List
instead of a
Stream
if you want.