v8.4.1 of cyclops adds an Either5 and various performance enhancements for working with collections
8.4.1 Release of Cyclops
Enhancements in 8.4.1
Sum types
- Either5 added
- Native for comprehensions added (forEach2-4)
- applyAny, consumeAny fluent method execution
Collection performance
- Cross-thread lazy collection materialization has spin locking
- plusLoop operators to append directly to Scala collections in a loop
Overview of 8.4.0
Cyclops 8.4.1 offers a smorgasord of Lazy Extended Persistent collections, choose between PCollections, Scala, Clojure, Dexx and JavaSlang for your Lazy eXtended Persistent Collections with a common interface across them all.
-
Lazy eXtended Dexx Persistent Collections
LazyPVectorX, LazyPQueueX, LazyPStackX, LazyPSetX, LazyPOrderedSetX, PMapX with persistent collections from Scala, Clojure, JavaSlang and Dexx.
cyclops-scala
Use Scala Persistent Collections directly from Java, without the pain of $colon.$colon.$plus syntax and canBuildFrom complexity.
e.g.
ScalaPVector.of(1,2,3)
.map(i->i*2)
.plus(5);
ScalaPVector.empty()
.onEmptySwitch(() -> ScalaPVectorX.of(1, 2, 3);
Interoperate with Collections from Clojure, PCollections, Dexx and JavaSlang
ScalaPPStack.of(1,2,3)
.flatMap(i->ClojurePVector.range(0,i)
.plus(5);
Getting Cyclops 8.4.1
MODULE_NAMES : cyclops-scala, cyclops-clojure, cyclops-dexx, cyclops-rx, cyclops-reactor, cyclops-guava, cyclops-functionaljava, cyclops-javaslang, cyclops-sum-types, cyclops-higherkindedtypes, cyclops-typeclasses
Gradle
compile 'com.aol.cyclops:MODULE_NAME:8.4.1’
Maven
<dependency>
<groupId>com.aol.cyclops</groupId>
<artifactId>MODULE_NAME</artifactId>
<version>8.4.1</version>
</dependency>
Javadoc
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-scala/8.4.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-clojure/8.4.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-dexx/8.4.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-rx/8.4.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-reactor/8.4.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-javaslang/8.4.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-functionaljava/8.4.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-guava/8.4.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-sum-types/8.4.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-higherkindedtypes/8.4.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-typeclasses/8.4.1