T - Data type of elements in nest 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, cast, combine, combine, cycle, cycle, cycleUntil, cycleWhile, deleteBetween, distinct, drop, dropRight, dropUntil, dropWhile, filterNot, grouped, grouped, grouped, grouped, groupedStatefullyUntil, groupedUntil, groupedUntil, groupedWhile, groupedWhile, insertAt, insertAtS, intersperse, isSeqPresent, limit, limitLast, limitUntil, limitWhile, notNull, ofType, onEmpty, onEmptyGet, onEmptyThrow, peek, prepend, prepend, prependS, recover, recover, removeAll, removeAllI, removeAllS, retainAll, retainAllI, retainAllS, retry, retry, reverse, scanLeft, scanLeft, scanRight, scanRight, shuffle, shuffle, skip, skipLast, skipUntil, skipWhile, slice, sliding, sliding, sorted, sorted, sorted, subscribe, take, takeRight, takeUntil, takeWhile, to, trampoline, transformerStream, unitAnyM, zip, zip, zip, zip3, zip3, zip4, zip4, zipP, zipP, zipS, zipS, zipWith, zipWithIndex, zipWithP, zipWithSunwrap, unwrapIfInstance, unwrapNestedmapToDouble, mapToInt, mapToLong, traversablefilter, mapgroupedStatefullyUntilT, groupedT, groupedUntilT, groupedWhileT, slidingT, slidingTfixedDelay, onePer, xPerendsWith, endsWithIterable, findFirst, firstValue, foldRight, foldRight, foldRight, foldRightMapToType, forEach, forEach, get, groupBy, join, join, join, mapReduce, mapReduce, nestedFoldables, print, print, printErr, printOut, reduce, reduce, reduce, reduce, reduce, reduce, schedule, scheduleFixedDelay, scheduleFixedRate, single, single, singleUnsafe, startsWith, startsWithIterable, toNestedfutureStream, getStreamable, isEmpty, jdkStream, reactiveSeq, reveresedJDKStream, reveresedStreamallMatch, anyMatch, collect, collect, futureT, listT, nestedCollectables, noneMatch, toListOfLists, toNestedListX, toNestedSetX, toSetOfSetsdefault ReactiveSeq<T> stream()
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 -