T
- Data type of elements in nested Monadpublic interface FoldableTransformerSeq<W extends WitnessType<W>,T> extends TransformerSeq<W,T>, NestedFoldable<W,T>, NestedCollectable<W,T>, FilterableTransformable<T>
Modifier and Type | Method and Description |
---|---|
<R> FoldableTransformerSeq<W,R> |
empty() |
<B> FoldableTransformerSeq<W,B> |
flatMap(java.util.function.Function<? super T,? extends java.lang.Iterable<? extends B>> f) |
default AnyM<W,HeadAndTail<T>> |
headAndTail()
extract head and tail together, where head is expected to be present
|
default ReactiveSeq<T> |
stream() |
<R> FoldableTransformerSeq<W,R> |
unitIterator(java.util.Iterator<R> it)
Create an IterableFunctor instance of the same type from an Iterator
|
default <R> AnyM<W,R> |
visit(java.util.function.BiFunction<? super T,? super ReactiveSeq<T>,? extends R> match,
java.util.function.Supplier<? extends R> ifEmpty)
Destructures this Traversable into it's head and tail.
|
append, append, combine, cycle, cycle, cycleUntil, cycleWhile, deleteBetween, distinct, dropRight, dropUntil, dropWhile, grouped, grouped, grouped, grouped, groupedStatefullyUntil, groupedUntil, groupedUntil, groupedWhile, groupedWhile, insertAt, insertAtS, intersperse, isSeqPresent, limit, limitLast, limitUntil, limitWhile, onEmpty, onEmptyGet, onEmptyThrow, prepend, prepend, prependS, reverse, scanLeft, scanLeft, scanRight, scanRight, shuffle, shuffle, skip, skipLast, skipUntil, skipWhile, slice, sliding, sliding, sorted, sorted, sorted, subscribe, takeRight, takeUntil, takeWhile, toDequeX, toListX, toPBagX, toPQueueX, toPSetX, toPStackX, toPVectorX, toQueueX, toSetX, transformerStream, unitAnyM, zip, zip, zip3, zip4, zipS, zipS, zipWithIndex
unwrap
seq, toFutureStream, toFutureStream, toMapX, toOptional, toPMapX, toPOrderedSetX, toSimpleReact, toSimpleReact, toSortedSetX, toStreamable, toValue
drop, mapToDouble, mapToInt, mapToLong, recover, recover, take, traversable
zip, zip3, zip4, zipP, zipP, zipWith, zipWithP, zipWithS
futureStream, getStreamable, isEmpty, jdkStream, reactiveSeq, reveresedJDKStream, reveresedStream
removeAllS, removeAllS, removeAllS, retainAllS, retainAllS, retainAllS
filter, map
cast, peek, retry, retry, trampoline
groupedStatefullyUntilT, groupedT, groupedUntilT, groupedWhileT, slidingT, slidingT
fixedDelay, onePer, xPer
endsWith, endsWithIterable, findFirst, firstValue, foldRight, foldRight, foldRight, foldRightMapToType, forEachXEvents, forEachXWithError, get, groupBy, join, join, join, mapReduce, mapReduce, nestedFoldables, print, print, printErr, printOut, reduce, reduce, reduce, reduce, reduce, reduce, schedule, scheduleFixedDelay, scheduleFixedRate, single, single, singleOptional, startsWith, startsWithIterable, toConcurrentLazyCollection, toConcurrentLazyStreamable, toLazyCollection
allMatch, anyMatch, collect, collect, futureT, listT, nestedCollectables, noneMatch, toListOfLists, toNestedListX, toNestedSetX, toSetOfSets
default ReactiveSeq<T> stream()
stream
in interface ConvertableSequence<T>
stream
in interface Sequential<T>
stream
in interface ToStream<T>
stream
in interface TransformerSeq<W extends WitnessType<W>,T>
stream
in interface TransformerTraversable<T>
stream
in interface Traversable<T>
<R> FoldableTransformerSeq<W,R> empty()
<R> FoldableTransformerSeq<W,R> unitIterator(java.util.Iterator<R> it)
Traversable
ReactiveSeq<Integer> newSeq = seq.unitIterable(myIterator);
unitIterator
in interface Traversable<T>
it
- Iterator to create new IterableFunctor from<B> FoldableTransformerSeq<W,B> flatMap(java.util.function.Function<? super T,? extends java.lang.Iterable<? extends B>> f)
default AnyM<W,HeadAndTail<T>> headAndTail()
default <R> AnyM<W,R> visit(java.util.function.BiFunction<? super T,? super ReactiveSeq<T>,? extends R> match, java.util.function.Supplier<? extends R> ifEmpty)
ListX.of(1,2,3,4,5,6,7,8,9)
.dropRight(5)
.plus(10)
.visit((x,xs) ->
xs.join(x.>2?"hello":"world")),()->"NIL"
);
//2world3world4
match
-