https://github.com/hernancerm/java-streams-vs-vavr
Small example of Java Stream vs Vavr for list manipulation
https://github.com/hernancerm/java-streams-vs-vavr
Last synced: about 1 year ago
JSON representation
Small example of Java Stream vs Vavr for list manipulation
- Host: GitHub
- URL: https://github.com/hernancerm/java-streams-vs-vavr
- Owner: hernancerm
- Created: 2021-06-19T20:06:15.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-09-09T01:18:57.000Z (almost 4 years ago)
- Last Synced: 2025-03-14T20:52:58.164Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 80.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java streams vs Vavr
[Vavr](https://www.vavr.io/) is a functional library for Java. It provides immutable data structures and functions to use them.
This repository provides a [minimal example](./src/main/java/hercerm/example/streamsvsvavr/App.java) 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:
```txt
Using Java 8+ streams
Martha
Julio
Dana
Using Vavr
Martha
Julio
Dana
```