public class UntypedDo
extends java.lang.Object
Stream<Integer> stream = Do.add(list)
.filter((Integer a) -> a>2)
.yield((Integer a)-> a +2 );
Stream<Integer> stream = Do.add(Arrays.asList(20,30))
.add(Arrays.asList(1,2,3))
.yield((Integer a)-> (Integer b) -> a + b+2);
| Modifier and Type | Class and Description |
|---|---|
static class |
UntypedDo.DoComp |
static class |
UntypedDo.DoComp0 |
static class |
UntypedDo.DoComp1 |
static class |
UntypedDo.DoComp2 |
static class |
UntypedDo.DoComp3 |
static class |
UntypedDo.DoComp4 |
static class |
UntypedDo.DoComp5 |
static class |
UntypedDo.DoComp6 |
static class |
UntypedDo.DoComp7 |
static class |
UntypedDo.DoComp8 |
| Constructor and Description |
|---|
UntypedDo() |
| Modifier and Type | Method and Description |
|---|---|
static UntypedDo.DoComp1 |
add(java.lang.Object o)
Build a for comprehension from supplied type
If type is a Monad Cyclops knows about (@see com.aol.cyclops.lambda.api.Comprehender) it will be used directly
Otherwise an attempt will be made to lift the type to a Monadic form (@see com.aol.cyclops.lambda.api.MonadicConverter)
|
static UntypedDo.DoComp1 |
add(java.util.function.Supplier<java.lang.Object> o)
Start a for comprehension from a Supplier
Supplier#get will be called immediately
If supplied type is a Monad Cyclops knows about (@see com.aol.cyclops.lambda.api.Comprehender) it will be used directly
Otherwise an attempt will be made to lift the type to a Monadic form (@see com.aol.cyclops.lambda.api.MonadicConverter)
|
public static UntypedDo.DoComp1 add(java.util.function.Supplier<java.lang.Object> o)
o - Supplier that generates Object to usepublic static UntypedDo.DoComp1 add(java.lang.Object o)
o - Object to use