The Wayback Machine - https://web.archive.org/web/20210715090558/https://github.com/vavr-io/vavr
Skip to content

vʌvr (formerly called Javaslang) is a non-commercial, non-profit object-functional library that runs with Java 8+. It aims to reduce the lines of code and increase code quality.

master
Switch branches/tags
Code

Latest commit

* Optimized Traversable<>.unzip(Function, Function)

New unzip() method accepts two functions to avoid extensive Tuple
creation under the hood.

* Removing commented-out line

* Changing return type for Traversable<>.unzip(Function, Function) to Tuple2<Iterator<T1>, Iterator<T2>>

* Fixing Iterator.unzip(Function, Function) bug

* Fixing typo

* Minor: unnecessary empty line removed

* Minore refinement to AbstractTraversableTest unzip(Function, Function)

* Adding Traversable<>.unzip3(Function, Function, Function)

* Minor changes to comments, tests re-grouping

* Removing Traversable<>.unzip(Function), Traversable<>.unzip3(Function)

* IteratorTest.java fix for unzip, unzip3

* Renaming tests for unzip, unzip3

* Java 8 warnings fix

* Java 8 warning fix (again)

* Return type simplified for Traversable<>.unzip3() to Tuple3<Iterator<T1>, Iterator<T2>, Iterator<T3>>

* Minor types adjustment in AbstractTraversableTest.java
e43e44b

Git stats

Files

Permalink
Failed to load latest commit information.

Gitpod ready-to-code License GitHub Release Maven Central Build Status Code Coverage Gitter Chat donate patrons

vavr-logo

Vavr is an object-functional language extension to Java 8, which aims to reduce the lines of code and increase code quality. It provides persistent collections, functional abstractions for error handling, concurrent programming, pattern matching and much more.

Vavr fuses the power of object-oriented programming with the elegance and robustness of functional programming. The most interesting part is a feature-rich, persistent collection library that smoothly integrates with Java's standard collections.

Because Vavr does not depend on any libraries (other than the JVM) you can easily add it as standalone .jar to your classpath.

To stay up to date please follow the blog.

Using Vavr

See User Guide and/or Javadoc.

Gradle tasks:

  • Build: ./gradlew check
    • test reports: ./build/reports/tests/test/index.html
    • coverage reports: ./build/reports/jacoco/test/html/index.html
  • Javadoc (linting): ./gradlew javadoc

Contributing

A small number of users have reported problems building Vavr. Read our contribution guide for details.