v6.1.1 of Cyclops :enhanced List & Set Monad support

@johnmcclean johnmcclean released this Nov 13, 2015 · 807 commits to master since this release

6.1.1 Release of Cyclops

Better support for java.util.List and java.util.Set

Bug Fixes

Fix for flatMap does not work as expected with ListComprehender

Performance enhancements

List and Set comprehenders now using Streams under the covers for efficiency, but look like Lists and Sets externally (unwrap returns a List if AnyM wraps a List).

Usability enhancements

AsAnyM has been deprecated in favor of the creational methods on AnyM itself (fromXX and ofXX). They will be removed in cyclops 7.0.0

e.g.

To ensure Lists or Sets are used :-

AnyM<Integer> list = AnyM.fromList(Arrays.asList(1,2,3));
assertThat(list.unwrap(),instanceOf(List.class));

AnyM<Integer> set = AnyM.fromSet(new HashSet<>(Arrays.asList(1,2,3)));
assertThat(set.unwrap(),instanceOf(Set.class));




## Getting Cyclops 6.1.1 

cyclops-all has all non-integration modules, but each module can be used / added individually (subject to it's own dependencies). Instructions for each module are in it's own readme.md.

## Gradle 

       compile 'com.aol.cyclops:cyclops-all:6.1.1'

## Maven

     <dependency>
           <groupId>com.aol.cyclops</groupId>
           <artifactId>cyclops-all</artifactId>
           <version>6.1.1</version>
     </dependency>


http://www.javadoc.io/doc/com.aol.cyclops/cyclops-sequence-api/6.1.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-streams/6.1.1  
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-monad-api/6.1.1   
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-monad-functions/6.1.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-mixins/6.1.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-invokedynamic/6.1.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-for-comprehensions/6.1.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-functions/6.1.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-try/6.1.1
http://www.javadoc.io/doc/com.aol.cyclops/pattern-matching/6.1.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-trampoline/6.1.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-feature-toggle/6.1.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-core/6.1.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-power-tuples/6.1.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-all/6.1.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-javaslang/6.1.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-functionaljava/6.1.1
http://www.javadoc.io/doc/com.aol.cyclops/cyclops-guava/6.1.1