/java-streams-vs-vavr

Small example of Java Stream vs Vavr for list manipulation

Primary LanguageJava

Java streams vs Vavr

Vavr is a functional library for Java. It provides immutable data structures and functions to use them.

This repository provides a minimal example of Java streams vs Vavr for a list manipulation.

Run the example

Use your Gradle installation, or a provided wrapper; e.g., in macOS use:

./gradlew run

Expected output:

Using Java 8+ streams
Martha
Julio
Dana

Using Vavr
Martha
Julio
Dana