v2.0.0-MI4 of cyclops-react - Kleisli and new Monad types
·
1269 commits
to master
since this release
2.0.0-MI4 of cyclops-react
What’s new cyclops-react v2 Milestone 4?
New Monads and types for working with Monads
- Kleisli
- Cokleisli
- Writer
- State
- ReaderWriterState
Kleisli example
Define a function that creates a Stream
import cyclops.monads.Witness.reactiveSeq;
Kleisli<reactiveSeq, Integer, Integer> k1 = t -> ReactiveSeq.iterate(0,i->i<t, i->i+1)
.anyM();
k1.flatMap(i-> t-> ReactiveSeq.of(t+i)
.anyM())
.apply(10)
.forEach(System.out::println);
10
11
12
13
14
15
16
17
18
19
Changelog
Check out the features delivered and bugs fixed -
Dependency upgrades
None this time
Get cyclops-react
Gradle
compile 'com.aol.simplereact:cyclops-react:2.0.0-MI4’
Maven
<dependency>
<groupId>com.aol.simplereact</groupId>
<artifactId>cyclops-react</artifactId>
<version>2.0.0-MI4</version>
</dependency>
Documentation
Articles
- Reactive programming with Java 8 and simple-react: The Tutorial
- JDK Collection eXtensions
- Awesome Fluent Functions
- Straightforward Structural Pattern Matching
- Performant Functional Try
- Articles on medium
- Introducting the Cyclops Monad API
- Easier Try with Cyclops
- 4 flavors of Java 8 Functions
- Memoise Functions in Java 8
- Strategy Pattern in Java 8
- Functional Feature Toggling
- Dependency injection using the Reader Monad in Java8
- Scheduling a Stream
- Neophytes guide to Java 8 : Welcome to the Future
- Deterministic and Non-Deterministic Finite State Machines with Cyclops
License
cyclops-react is licensed under the Apache 2.0 license.