A small, straightforward library bringing the benefits of functional programming to Java 11
Add the JitPack repository to your pom.xml
:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
And add the dependency:
<dependency>
<groupId>io.github.gdejohn</groupId>
<artifactId>procrastination</artifactId>
<version>0.3.0</version>
</dependency>
See instructions for other build tools at JitPack.
Sequence.group(BiPredicate)
doesn't do what it says it does (~#16~)There were 35 commits between 0.2.0 and this release.
Either
, Maybe
, Pair
, and Sequence
now consistently disallow null elementsSequence.uncons()
to Sequence.maybe()
Sequence.prefixes()
Sequence.matchOrThrow()
, Sequence.matchOrThrow(Supplier)
, Sequence.matchLazyOrThrow()
, Sequence.matchLazyOrThrow(Supplier)
Either.rightOr(Object)
, Either.rightOr(Supplier)
, Either.rightOr(Function)
, Either.rightOrThrow()
, Either.rightOrThrow(Supplier)
Either.leftOr(Object)
, Either.leftOr(Supplier)
, Either.leftOr(Function)
, Either.leftOrThrow()
, Either.leftOrThrow(Supplier)
Either.map(Function,Either)
, Either.flatMap(Function,Either)
, Either.apply(Either,Either)
Add the JitPack repository to your pom.xml
:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
And add the dependency:
<dependency>
<groupId>io.github.gdejohn</groupId>
<artifactId>procrastination</artifactId>
<version>0.2.0</version>
</dependency>
See instructions for other build tools at JitPack.
There were 7 commits between 0.1.0 and this release.
Sequence.sort()
to Stream.sorted()
for much better performanceAdd the JitPack repository to your pom.xml
:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
And add the dependency:
<dependency>
<groupId>io.github.gdejohn</groupId>
<artifactId>procrastination</artifactId>
<version>0.1.0</version>
</dependency>
See instructions for other build tools at JitPack.