Skip to content

Commit

Permalink
6.2.3 of cyclops
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmcclean committed Dec 14, 2015
1 parent 893148f commit ac9a913
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cyclops-free-monad/repos/cyclops-free-monad-1.0.jar.sha1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d606e8a4ee7e02dbc29a4286bad8e809e2409456
a2c18d258afe1d847cf8babc7f11efeca50ad1c5
12 changes: 6 additions & 6 deletions cyclops-free-monad/repos/ivy-1.0.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven">
<info organisation="com.aol.cyclops" module="cyclops-free-monad" revision="1.0" status="integration" publication="20151202230859">
<info organisation="com.aol.cyclops" module="cyclops-free-monad" revision="1.0" status="integration" publication="20151214124316">
<description/>
</info>
<configurations>
Expand All @@ -18,12 +18,12 @@
<dependencies>
<dependency org="org.functionaljava" name="functionaljava" rev="4.3" conf="compile-&gt;default"/>
<dependency org="org.functionaljava" name="functionaljava-java8" rev="4.3" conf="compile-&gt;default"/>
<dependency org="com.aol.cyclops" name="cyclops-pattern-matching" rev="6.2.1" conf="compile-&gt;default"/>
<dependency org="com.aol.cyclops" name="cyclops-pattern-matching-recursive" rev="6.2.1" conf="compile-&gt;default"/>
<dependency org="com.aol.cyclops" name="cyclops-trampoline" rev="6.2.1" conf="compile-&gt;default"/>
<dependency org="com.aol.cyclops" name="cyclops-mixins" rev="6.2.1" conf="compile-&gt;default"/>
<dependency org="com.aol.cyclops" name="cyclops-pattern-matching" rev="6.2.3" conf="compile-&gt;default"/>
<dependency org="com.aol.cyclops" name="cyclops-pattern-matching-recursive" rev="6.2.3" conf="compile-&gt;default"/>
<dependency org="com.aol.cyclops" name="cyclops-trampoline" rev="6.2.3" conf="compile-&gt;default"/>
<dependency org="com.aol.cyclops" name="cyclops-mixins" rev="6.2.3" conf="compile-&gt;default"/>
<dependency org="org.projectlombok" name="lombok" rev="1.16.2" conf="provided-&gt;default"/>
<dependency org="com.aol.cyclops" name="cyclops-for-comprehensions" rev="6.2.1" conf="testCompile-&gt;default"/>
<dependency org="com.aol.cyclops" name="cyclops-for-comprehensions" rev="6.2.3" conf="testCompile-&gt;default"/>
<dependency org="junit" name="junit" rev="4.12" conf="testCompile-&gt;default"/>
</dependencies>
</ivy-module>
2 changes: 1 addition & 1 deletion cyclops-free-monad/repos/ivy-1.0.xml.sha1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b3aacb453e75b96a58ae044a8a0c23337c336817
4e8263cf5950ad9164f54d94cf620b44bf1df0f7
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public void windowUntilEmpty(){
}
@Test
public void windowStatefullyWhile(){

System.out.println(SequenceM.of(1,2,3,4,5,6)
.windowStatefullyWhile((s,i)->s.sequenceM().toList().contains(4) ? true : false)
.toList());
assertThat(SequenceM.of(1,2,3,4,5,6)
.windowStatefullyWhile((s,i)->s.sequenceM().toList().contains(4) ? true : false)
.toList().size(),equalTo(5));
Expand All @@ -79,6 +81,7 @@ public void sliding() {
public void slidingIncrement() {
List<List<Integer>> list = SequenceM.of(1, 2, 3, 4, 5, 6).sliding(3, 2).collect(Collectors.toList());

System.out.println(list);
assertThat(list.get(0), hasItems(1, 2, 3));
assertThat(list.get(1), hasItems(3, 4, 5));
}
Expand All @@ -87,7 +90,7 @@ public void slidingIncrement() {
public void grouped() {

List<List<Integer>> list = SequenceM.of(1, 2, 3, 4, 5, 6).grouped(3).collect(Collectors.toList());

System.out.println(list);
assertThat(list.get(0), hasItems(1, 2, 3));
assertThat(list.get(1), hasItems(4, 5, 6));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public void zip(){
.peek(it -> System.out.println(it))

.collect(Collectors.toList());
System.out.println(list);

List<Integer> right = list.stream().map(t -> t.v2).collect(Collectors.toList());

Expand All @@ -62,6 +63,7 @@ public void zip3(){

.collect(Collectors.toList());

System.out.println(list);
List<Integer> right = list.stream().map(t -> t.v2).collect(Collectors.toList());
assertThat(right,hasItem(100));
assertThat(right,hasItem(200));
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=6.2.2
version=6.2.3
lombokVersion=1.16.2
joolVersion=0.9.7
pcollectionsVersion=2.1.2
Expand Down

0 comments on commit ac9a913

Please sign in to comment.