Uses of Interface
io.vavr.collection.Seq
Packages that use Seq
Package
Description
Beside
API the io.vavr package contains core types like (Checked)Functions and Tuples.Purely functional collections based on Traversable.
This package contains basic building blocks for creating fast, asynchronous, non-blocking parallel code.
-
Uses of Seq in io.vavr
Modifier and TypeMethodDescriptionstatic <T> Seq<T> API.Seq()Alias forList.empty()static <T> Seq<T> API.Seq(T element) Alias forList.of(Object)static <T> Seq<T> API.Seq(T @NonNull ... elements) Alias forList.of(Object...)Seq<?> Tuple.toSeq()Converts this tuple to a sequence.Seq<?> Tuple0.toSeq()Seq<?> Tuple1.toSeq()Seq<?> Tuple2.toSeq()Seq<?> Tuple3.toSeq()Seq<?> Tuple4.toSeq()Seq<?> Tuple5.toSeq()Seq<?> Tuple6.toSeq()Seq<?> Tuple7.toSeq()Seq<?> Tuple8.toSeq()Modifier and TypeMethodDescriptionCombines multipleLazyinstances into a singleLazycontaining a sequence of their evaluated values.Turns a sequence ofTuple1into a Tuple1 ofSeq.Turns a sequence ofTuple2into a Tuple2 ofSeqs.Turns a sequence ofTuple2into a Tuple2 ofSeqs.Tuple.sequence3(@NonNull Iterable<? extends Tuple3<? extends T1, ? extends T2, ? extends T3>> tuples) Turns a sequence ofTuple3into a Tuple3 ofSeqs.Tuple.sequence3(@NonNull Iterable<? extends Tuple3<? extends T1, ? extends T2, ? extends T3>> tuples) Turns a sequence ofTuple3into a Tuple3 ofSeqs.Tuple.sequence3(@NonNull Iterable<? extends Tuple3<? extends T1, ? extends T2, ? extends T3>> tuples) Turns a sequence ofTuple3into a Tuple3 ofSeqs.Tuple.sequence4(@NonNull Iterable<? extends Tuple4<? extends T1, ? extends T2, ? extends T3, ? extends T4>> tuples) Turns a sequence ofTuple4into a Tuple4 ofSeqs.Tuple.sequence4(@NonNull Iterable<? extends Tuple4<? extends T1, ? extends T2, ? extends T3, ? extends T4>> tuples) Turns a sequence ofTuple4into a Tuple4 ofSeqs.Tuple.sequence4(@NonNull Iterable<? extends Tuple4<? extends T1, ? extends T2, ? extends T3, ? extends T4>> tuples) Turns a sequence ofTuple4into a Tuple4 ofSeqs.Tuple.sequence4(@NonNull Iterable<? extends Tuple4<? extends T1, ? extends T2, ? extends T3, ? extends T4>> tuples) Turns a sequence ofTuple4into a Tuple4 ofSeqs.Tuple.sequence5(@NonNull Iterable<? extends Tuple5<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5>> tuples) Turns a sequence ofTuple5into a Tuple5 ofSeqs.Tuple.sequence5(@NonNull Iterable<? extends Tuple5<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5>> tuples) Turns a sequence ofTuple5into a Tuple5 ofSeqs.Tuple.sequence5(@NonNull Iterable<? extends Tuple5<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5>> tuples) Turns a sequence ofTuple5into a Tuple5 ofSeqs.Tuple.sequence5(@NonNull Iterable<? extends Tuple5<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5>> tuples) Turns a sequence ofTuple5into a Tuple5 ofSeqs.Tuple.sequence5(@NonNull Iterable<? extends Tuple5<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5>> tuples) Turns a sequence ofTuple5into a Tuple5 ofSeqs.Tuple.sequence6(@NonNull Iterable<? extends Tuple6<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6>> tuples) Turns a sequence ofTuple6into a Tuple6 ofSeqs.Tuple.sequence6(@NonNull Iterable<? extends Tuple6<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6>> tuples) Turns a sequence ofTuple6into a Tuple6 ofSeqs.Tuple.sequence6(@NonNull Iterable<? extends Tuple6<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6>> tuples) Turns a sequence ofTuple6into a Tuple6 ofSeqs.Tuple.sequence6(@NonNull Iterable<? extends Tuple6<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6>> tuples) Turns a sequence ofTuple6into a Tuple6 ofSeqs.Tuple.sequence6(@NonNull Iterable<? extends Tuple6<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6>> tuples) Turns a sequence ofTuple6into a Tuple6 ofSeqs.Tuple.sequence6(@NonNull Iterable<? extends Tuple6<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6>> tuples) Turns a sequence ofTuple6into a Tuple6 ofSeqs.Tuple.sequence7(@NonNull Iterable<? extends Tuple7<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6, ? extends T7>> tuples) Turns a sequence ofTuple7into a Tuple7 ofSeqs.Tuple.sequence7(@NonNull Iterable<? extends Tuple7<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6, ? extends T7>> tuples) Turns a sequence ofTuple7into a Tuple7 ofSeqs.Tuple.sequence7(@NonNull Iterable<? extends Tuple7<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6, ? extends T7>> tuples) Turns a sequence ofTuple7into a Tuple7 ofSeqs.Tuple.sequence7(@NonNull Iterable<? extends Tuple7<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6, ? extends T7>> tuples) Turns a sequence ofTuple7into a Tuple7 ofSeqs.Tuple.sequence7(@NonNull Iterable<? extends Tuple7<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6, ? extends T7>> tuples) Turns a sequence ofTuple7into a Tuple7 ofSeqs.Tuple.sequence7(@NonNull Iterable<? extends Tuple7<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6, ? extends T7>> tuples) Turns a sequence ofTuple7into a Tuple7 ofSeqs.Tuple.sequence7(@NonNull Iterable<? extends Tuple7<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6, ? extends T7>> tuples) Turns a sequence ofTuple7into a Tuple7 ofSeqs.static <T1,T2, T3, T4, T5, T6, T7, T8>
Tuple8<Seq<T1>, Seq<T2>, Seq<T3>, Seq<T4>, Seq<T5>, Seq<T6>, Seq<T7>, Seq<T8>> Tuple.sequence8(@NonNull Iterable<? extends Tuple8<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6, ? extends T7, ? extends T8>> tuples) Turns a sequence ofTuple8into a Tuple8 ofSeqs.static <T1,T2, T3, T4, T5, T6, T7, T8>
Tuple8<Seq<T1>, Seq<T2>, Seq<T3>, Seq<T4>, Seq<T5>, Seq<T6>, Seq<T7>, Seq<T8>> Tuple.sequence8(@NonNull Iterable<? extends Tuple8<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6, ? extends T7, ? extends T8>> tuples) Turns a sequence ofTuple8into a Tuple8 ofSeqs.static <T1,T2, T3, T4, T5, T6, T7, T8>
Tuple8<Seq<T1>, Seq<T2>, Seq<T3>, Seq<T4>, Seq<T5>, Seq<T6>, Seq<T7>, Seq<T8>> Tuple.sequence8(@NonNull Iterable<? extends Tuple8<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6, ? extends T7, ? extends T8>> tuples) Turns a sequence ofTuple8into a Tuple8 ofSeqs.static <T1,T2, T3, T4, T5, T6, T7, T8>
Tuple8<Seq<T1>, Seq<T2>, Seq<T3>, Seq<T4>, Seq<T5>, Seq<T6>, Seq<T7>, Seq<T8>> Tuple.sequence8(@NonNull Iterable<? extends Tuple8<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6, ? extends T7, ? extends T8>> tuples) Turns a sequence ofTuple8into a Tuple8 ofSeqs.static <T1,T2, T3, T4, T5, T6, T7, T8>
Tuple8<Seq<T1>, Seq<T2>, Seq<T3>, Seq<T4>, Seq<T5>, Seq<T6>, Seq<T7>, Seq<T8>> Tuple.sequence8(@NonNull Iterable<? extends Tuple8<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6, ? extends T7, ? extends T8>> tuples) Turns a sequence ofTuple8into a Tuple8 ofSeqs.static <T1,T2, T3, T4, T5, T6, T7, T8>
Tuple8<Seq<T1>, Seq<T2>, Seq<T3>, Seq<T4>, Seq<T5>, Seq<T6>, Seq<T7>, Seq<T8>> Tuple.sequence8(@NonNull Iterable<? extends Tuple8<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6, ? extends T7, ? extends T8>> tuples) Turns a sequence ofTuple8into a Tuple8 ofSeqs.static <T1,T2, T3, T4, T5, T6, T7, T8>
Tuple8<Seq<T1>, Seq<T2>, Seq<T3>, Seq<T4>, Seq<T5>, Seq<T6>, Seq<T7>, Seq<T8>> Tuple.sequence8(@NonNull Iterable<? extends Tuple8<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6, ? extends T7, ? extends T8>> tuples) Turns a sequence ofTuple8into a Tuple8 ofSeqs.static <T1,T2, T3, T4, T5, T6, T7, T8>
Tuple8<Seq<T1>, Seq<T2>, Seq<T3>, Seq<T4>, Seq<T5>, Seq<T6>, Seq<T7>, Seq<T8>> Tuple.sequence8(@NonNull Iterable<? extends Tuple8<? extends T1, ? extends T2, ? extends T3, ? extends T4, ? extends T5, ? extends T6, ? extends T7, ? extends T8>> tuples) Turns a sequence ofTuple8into a Tuple8 ofSeqs. -
Uses of Seq in io.vavr.collection
Classes in io.vavr.collection with type parameters of type SeqModifier and TypeClassDescription(package private) static classJavaConverters.ListView<T, C extends Seq<T>>private static classJavaConverters.ListView.Iterator<T, C extends Seq<T>>private static classJavaConverters.ListView.ListIterator<T, C extends Seq<T>>Subinterfaces of Seq in io.vavr.collectionModifier and TypeInterfaceDescriptioninterfaceIndexedSeq<T>Represents an immutable, indexed sequence of elements.interfaceLinearSeq<T>Interface for immutable, linear sequences.interfaceList<T>An immutableListis an eager sequence of elements.interfaceStream<T>An immutableStreamis lazy sequence of elements which may be infinitely long.Classes in io.vavr.collection that implement SeqModifier and TypeClassDescriptionfinal classArray<T>Array is an immutable Traversable wrapper forObject[]containing elements of typeT.final classThe CharSeq (read: character sequence) collection essentially is a rich String wrapper having all operations we know from the functional Vavr collections.static final classList.Cons<T>Non-emptyList, consisting of aheadand atail.static final classList.Nil<T>Representation of the singleton emptyList.final classQueue<T>An immutableQueuestores elements allowing a first-in-first-out (FIFO) retrieval.static classStream.Cons<T>Non-emptyStream, consisting of ahead, andtail.static final classStream.Empty<T>The empty Stream.static final classstatic final classfinal classVector<T>Vector is the default Seq implementation that provides effectively constant time access to any element.Classes in io.vavr.collection that implement interfaces with type arguments of type SeqFields in io.vavr.collection declared as SeqModifier and TypeFieldDescription(package private) final Seq<PriorityQueueBase.Node<T>> PriorityQueueBase.Node.childrenprivate final Seq<PriorityQueueBase.Node<T>> PriorityQueue.forestMethods in io.vavr.collection with type parameters of type SeqModifier and TypeMethodDescription(package private) static <T, C extends Seq<T>>
CCollections.asJava(C source, Consumer<? super List<T>> action, JavaConverters.ChangePolicy changePolicy) (package private) static <T, C extends Seq<T>>
JavaConverters.ListView<T, C> JavaConverters.asJava(C seq, JavaConverters.ChangePolicy changePolicy) Collections.crossProduct(S empty, S seq, int power) (package private) static <T, C extends Seq<T>>
CCollections.rotateLeft(C source, int n) (package private) static <T, C extends Seq<T>>
CCollections.rotateRight(C source, int n) (package private) static <T, S extends Seq<T>>
S(package private) static <T, U, R extends Seq<T>>
RCollections.sortBy(Seq<? extends T> source, Comparator<? super U> comparator, Function<? super T, ? extends U> mapper, Collector<T, ?, R> collector) Collections.transposeNonEmptyMatrix(V matrix, Function<Iterable<U>, V> rowFactory, Function<T[], U> columnFactory) Collections.transposeNonEmptyMatrix(V matrix, Function<Iterable<U>, V> rowFactory, Function<T[], U> columnFactory) Methods in io.vavr.collection that return SeqModifier and TypeMethodDescriptionReturns a new sequence with the given element appended at the end.Returns a new sequence with all elements from the givenIterableappended at the end of this sequence.(package private) Seq<PriorityQueueBase.Node<T>> PriorityQueueBase.Node.appendTo(Seq<PriorityQueueBase.Node<T>> forest) Seq.asJavaMutable(@NonNull Consumer<? super List<T>> action) default <R> Seq<R> Map.collect(@NonNull PartialFunction<? super Tuple2<K, V>, ? extends R> partialFunction) default <R> Seq<R> Multimap.collect(@NonNull PartialFunction<? super Tuple2<K, V>, ? extends R> partialFunction) <R> Seq<R> Seq.collect(@NonNull PartialFunction<? super T, ? extends R> partialFunction) Seq.combinations()Returns a sequence containing all combinations of elements from this sequence, for all sizes from0tolength().Seq.combinations(int k) Returns all subsets of this sequence containing exactlykdistinct elements, i.e., the k-combinations of this sequence.Seq.distinct()Tree.distinct()Seq.distinctBy(@NonNull Comparator<? super T> comparator) Seq.distinctBy(@NonNull Function<? super T, ? extends U> keyExtractor) Tree.distinctBy(@NonNull Comparator<? super T> comparator) Tree.distinctBy(@NonNull Function<? super T, ? extends U> keyExtractor) Seq.distinctByKeepLast(@NonNull Comparator<? super T> comparator) Returns a sequence with duplicate elements removed, as determined by the provided comparator.Seq.distinctByKeepLast(@NonNull Function<? super T, ? extends U> keyExtractor) Returns a sequence with duplicates removed based on a key extracted from each element.Seq.drop(int n) Tree.drop(int n) Seq.dropRight(int n) Tree.dropRight(int n) Seq.dropRightUntil(@NonNull Predicate<? super T> predicate) Drops elements from the end of the sequence until an element satisfies the given predicate.Seq.dropRightWhile(@NonNull Predicate<? super T> predicate) Drops elements from the end of the sequence while the given predicate holds.default <U> Seq<U> Flat-maps this entries to a sequence of values.default <U> Seq<U> Flat-maps this entries to a sequence of values.<U> Seq<U> Seq.init()Tree.init()private static <T> Seq<PriorityQueueBase.Node<T>> PriorityQueueBase.ins(Comparator<? super T> comparator, PriorityQueueBase.Node<T> tree, Seq<PriorityQueueBase.Node<T>> forest) fun ins (t, []) = [t] * | ins (t, t' :: ts) = (∗ rank t ≤ rank t' ∗) * if rank t invalid input: '<' rank t' then t :: t' :: ts * else ins (link (t, t'), ts)(package private) static <T> Seq<PriorityQueueBase.Node<T>> PriorityQueueBase.insert(Comparator<? super T> comparator, T element, Seq<PriorityQueueBase.Node<T>> forest) fun insert (x, ts as t1 :: t2 :: rest) = * if rank t1 = rank t2 then skewLink(Node(x,0,[]),t1,t2) :: rest * else Node (x,0,[]) :: ts * | insert (x, ts) = Node (x,0,[]) :: tsReturns a new sequence with the given element inserted at the specified index.Returns a new sequence with the given elements inserted at the specified index.Seq.intersperse(T element) Returns a new sequence where the given element is inserted between all elements of this sequence.Returns a new sequence with this sequence padded on the left with the given element until the specified target length is reached.default <U> Seq<U> Maps theMapentries to a sequence of values.default <U> Seq<U> Maps theMultimapentries to a sequence of values.<U> Seq<U> default <U> Seq<U> Map.mapTo(U value) default <U> Seq<U> Multimap.mapTo(U value) default <U> Seq<U> Seq.mapTo(U value) Map.mapToVoid()Multimap.mapToVoid()Seq.mapToVoid()(package private) static <T> Seq<PriorityQueueBase.Node<T>> PriorityQueueBase.meld(Comparator<? super T> comparator, Seq<PriorityQueueBase.Node<T>> source, Seq<PriorityQueueBase.Node<T>> target) fun meld (ts, ts') = meldUniq (uniqify ts, uniqify ts')private static <T> Seq<PriorityQueueBase.Node<T>> PriorityQueueBase.meldUnique(Comparator<? super T> comparator, Seq<PriorityQueueBase.Node<T>> forest1, Seq<PriorityQueueBase.Node<T>> forest2) fun meldUniq ([], ts) = ts * | meldUniq (ts, []) = ts * | meldUniq (t1 :: ts1, t2 :: ts2) = * if rank t1 invalid input: '<' rank t2 then t1 :: meldUniq (ts1, t2 :: ts2) * else if rank t2 invalid input: '<' rank t1 then t2 :: meldUniq (t1 :: ts1, ts2) * else ins (link (t1, t2), meldUniq (ts1, ts2))static <T> Seq<T> Narrows aSeq<? extends T>toSeq<T>via a safe unchecked cast.IteratorModule.GroupedIterator.next()Returns a new sequence with this sequence padded on the right with the given element until the specified target length is reached.Returns a new sequence in which a slice of elements in this sequence is replaced by the elements of another sequence.Seq.permutations()Returns all unique permutations of this sequence.Returns a new sequence with the given element prepended to this sequence.Seq.prependAll(@NonNull Iterable<? extends T> elements) Returns a new sequence with all given elements prepended to this sequence.private static <T> Seq<PriorityQueueBase.Node<T>> PriorityQueueBase.rebuild(Comparator<? super T> comparator, Seq<PriorityQueueBase.Node<T>> forest) Separate the rank 0 trees from the rest, rebuild the 0 rank ones and merge them backReturns a new sequence with the first occurrence of the given element removed.Returns a new sequence with all occurrences of the given elements removed.Deprecated.Returns a new sequence with all occurrences of the given element removed.Seq.removeAt(int index) Returns a new sequence with the element at the specified position removed.Seq.removeFirst(@NonNull Predicate<T> predicate) Returns a new sequence with the first element that satisfies the given predicate removed.Seq.removeLast(@NonNull Predicate<T> predicate) Returns a new sequence with the last element that satisfies the given predicate removed.Seq.replaceAll(T currentElement, T newElement) Seq.reverse()Returns a new sequence with the order of elements reversed.Seq.rotateLeft(int n) Returns a new sequence with the elements circularly rotated to the left by the specified distance.Seq.rotateRight(int n) Returns a new sequence with the elements circularly rotated to the right by the specified distance.default <U> Seq<U> Map.scanLeft(U zero, @NonNull BiFunction<? super U, ? super Tuple2<K, V>, ? extends U> operation) default <U> Seq<U> Multimap.scanLeft(U zero, @NonNull BiFunction<? super U, ? super Tuple2<K, V>, ? extends U> operation) <U> Seq<U> Seq.scanLeft(U zero, @NonNull BiFunction<? super U, ? super T, ? extends U> operation) default <U> Seq<U> Tree.scanLeft(U zero, @NonNull BiFunction<? super U, ? super T, ? extends U> operation) default <U> Seq<U> Map.scanRight(U zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super U, ? extends U> operation) default <U> Seq<U> Multimap.scanRight(U zero, @NonNull BiFunction<? super Tuple2<K, V>, ? super U, ? extends U> operation) <U> Seq<U> Seq.scanRight(U zero, @NonNull BiFunction<? super T, ? super U, ? extends U> operation) default <U> Seq<U> Tree.scanRight(U zero, @NonNull BiFunction<? super T, ? super U, ? extends U> operation) Seq.shuffle()Returns a new sequence with the elements randomly shuffled.Seq.slice(int beginIndex, int endIndex) Returns a subsequence (slice) of this sequence, starting atbeginIndex(inclusive) and ending atendIndex(exclusive).Seq.sortBy(@NonNull Comparator<? super U> comparator, Function<? super T, ? extends U> mapper) Returns a new sequence sorted by comparing elements in a different domain defined by the givenmapper, using the providedcomparator.<U extends Comparable<? super U>>
Seq<T> Returns a new sequence sorted by comparing elements in a different domain defined by the givenmapper.Seq.sorted()Returns a new sequence with elements sorted according to their natural order.Seq.sorted(@NonNull Comparator<? super T> comparator) Returns a new sequence with elements sorted according to the givenComparator.Splits this string around matches of the given regular expression.Splits this string around matches of the given regular expression.Seq.subSequence(int beginIndex) Returns aSeqthat is a subsequence of this sequence, starting from the specifiedbeginIndexand extending to the end of this sequence.Seq.subSequence(int beginIndex, int endIndex) Returns aSeqthat is a subsequence of this sequence, starting from the specifiedbeginIndex(inclusive) and ending atendIndex(exclusive).Seq.tail()Tree.tail()Seq.take(int n) Tree.take(int n) Seq.takeRight(int n) Tree.takeRight(int n) Seq.takeRightUntil(@NonNull Predicate<? super T> predicate) Takes elements from the end of the sequence until an element satisfies the given predicate.Seq.takeRightWhile(@NonNull Predicate<? super T> predicate) Takes elements from the end of the sequence while the given predicate holds.Tree.traverse()Traverses this tree inTree.Order.PRE_ORDER.Tree.traverse(@NonNull Tree.Order order) Traverses this tree in a specific order.private static <T> Seq<PriorityQueueBase.Node<T>> PriorityQueueBase.uniqify(Comparator<? super T> comparator, Seq<PriorityQueueBase.Node<T>> forest) fun uniqify [] = [] * | uniqify (t :: ts) = ins (t, ts) (∗ eliminate initial duplicate ∗)Returns a newSeqwith the element at the specified index updated using the given function.Returns a newSeqwith the element at the specified index replaced by the given value.LinkedHashMap.values()Map.values()Returns a newSeqthat contains the values of thisMap.Tree.values()Traverses this tree values inTree.Order.PRE_ORDER.Tree.values(@NonNull Tree.Order order) Traverses this tree values in a specific order.TreeMap.values()default <U,R> Seq <R> Map.zipWith(@NonNull Iterable<? extends U> that, BiFunction<? super Tuple2<K, V>, ? super U, ? extends R> mapper) default <U,R> Seq <R> Multimap.zipWith(@NonNull Iterable<? extends U> that, BiFunction<? super Tuple2<K, V>, ? super U, ? extends R> mapper) <U,R> Seq <R> Seq.zipWith(@NonNull Iterable<? extends U> that, BiFunction<? super T, ? super U, ? extends R> mapper) Map.zipWithIndex()default <U> Seq<U> Map.zipWithIndex(@NonNull BiFunction<? super Tuple2<K, V>, ? super Integer, ? extends U> mapper) Multimap.zipWithIndex()default <U> Seq<U> Multimap.zipWithIndex(@NonNull BiFunction<? super Tuple2<K, V>, ? super Integer, ? extends U> mapper) Seq.zipWithIndex()<U> Seq<U> Seq.zipWithIndex(@NonNull BiFunction<? super T, ? super Integer, ? extends U> mapper) Methods in io.vavr.collection that return types with arguments of type SeqModifier and TypeMethodDescriptionSeq.combinations()Returns a sequence containing all combinations of elements from this sequence, for all sizes from0tolength().Seq.combinations(int k) Returns all subsets of this sequence containing exactlykdistinct elements, i.e., the k-combinations of this sequence.Seq.crossProduct(int power) Returns the n-ary Cartesian power (cross product) of this sequence.(package private) static <T> Tuple2<T, Seq<PriorityQueueBase.Node<T>>> PriorityQueueBase.deleteMin(Comparator<? super T> comparator, Seq<PriorityQueueBase.Node<T>> forest) fun deleteMin [] = raise EMPTY * | deleteMin ts = * val (Node (x,r,c), ts) = getMin ts * val (ts',xs') = split ([],[],c) * in fold insert xs' (meld (ts, ts')) endIterator.grouped(int size) Seq.grouped(int size) Tree.grouped(int size) Seq.initOption()Tree.initOption()Seq.permutations()Returns all unique permutations of this sequence.Iterator.sliding(int size) Iterator.sliding(int size, int step) Seq.sliding(int size) Seq.sliding(int size, int step) Tree.sliding(int size) Tree.sliding(int size, int step) Seq.splitAt(int n) Splits this sequence at the specified index.Seq.splitAt(int n) Splits this sequence at the specified index.Splits this sequence at the first element satisfying the given predicate.Splits this sequence at the first element satisfying the given predicate.Seq.splitAtInclusive(@NonNull Predicate<? super T> predicate) Splits this sequence at the first element satisfying the given predicate, including the element in the first part.Seq.splitAtInclusive(@NonNull Predicate<? super T> predicate) Splits this sequence at the first element satisfying the given predicate, including the element in the first part.Seq.tailOption()Tree.tailOption()Map.unzip()Unzips the entries of thisMapby treating each key-value pair as an element, and splitting them into two separateSeqcollections - one for keys and one for values.Map.unzip()Unzips the entries of thisMapby treating each key-value pair as an element, and splitting them into two separateSeqcollections - one for keys and one for values.Map.unzip(@NonNull BiFunction<? super K, ? super V, Tuple2<? extends T1, ? extends T2>> unzipper) Unzips the entries of thisMapby mapping each key-value pair to a tuple.Map.unzip(@NonNull BiFunction<? super K, ? super V, Tuple2<? extends T1, ? extends T2>> unzipper) Unzips the entries of thisMapby mapping each key-value pair to a tuple.Multimap.unzip(@NonNull BiFunction<? super K, ? super V, Tuple2<? extends T1, ? extends T2>> unzipper) Unzips the entries of thisMultimapby mapping each key-value pair to a pair and splitting them into two separateSeqcollections.Multimap.unzip(@NonNull BiFunction<? super K, ? super V, Tuple2<? extends T1, ? extends T2>> unzipper) Unzips the entries of thisMultimapby mapping each key-value pair to a pair and splitting them into two separateSeqcollections.Map.unzip3(@NonNull BiFunction<? super K, ? super V, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Unzips the entries of thisMapby mapping each key-value pair to a triple.Map.unzip3(@NonNull BiFunction<? super K, ? super V, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Unzips the entries of thisMapby mapping each key-value pair to a triple.Map.unzip3(@NonNull BiFunction<? super K, ? super V, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Unzips the entries of thisMapby mapping each key-value pair to a triple.Map.unzip3(@NonNull Function<? super Tuple2<K, V>, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Map.unzip3(@NonNull Function<? super Tuple2<K, V>, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Map.unzip3(@NonNull Function<? super Tuple2<K, V>, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Multimap.unzip3(@NonNull BiFunction<? super K, ? super V, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Unzips the entries of thisMultimapby mapping each key-value pair to a triple and splitting them into three separateSeqcollections.Multimap.unzip3(@NonNull BiFunction<? super K, ? super V, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Unzips the entries of thisMultimapby mapping each key-value pair to a triple and splitting them into three separateSeqcollections.Multimap.unzip3(@NonNull BiFunction<? super K, ? super V, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Unzips the entries of thisMultimapby mapping each key-value pair to a triple and splitting them into three separateSeqcollections.Multimap.unzip3(@NonNull Function<? super Tuple2<K, V>, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Multimap.unzip3(@NonNull Function<? super Tuple2<K, V>, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Multimap.unzip3(@NonNull Function<? super Tuple2<K, V>, Tuple3<? extends T1, ? extends T2, ? extends T3>> unzipper) Methods in io.vavr.collection with parameters of type SeqModifier and TypeMethodDescription(package private) Seq<PriorityQueueBase.Node<T>> PriorityQueueBase.Node.appendTo(Seq<PriorityQueueBase.Node<T>> forest) (package private) static <T> Tuple2<T, Seq<PriorityQueueBase.Node<T>>> PriorityQueueBase.deleteMin(Comparator<? super T> comparator, Seq<PriorityQueueBase.Node<T>> forest) fun deleteMin [] = raise EMPTY * | deleteMin ts = * val (Node (x,r,c), ts) = getMin ts * val (ts',xs') = split ([],[],c) * in fold insert xs' (meld (ts, ts')) enddefault booleandefault booleanChecks whether this sequence ends with the given sequence.(package private) static <V> boolean(package private) static <T> PriorityQueueBase.Node<T> PriorityQueueBase.findMin(Comparator<? super T> comparator, Seq<PriorityQueueBase.Node<T>> forest) Find the minimum root in the forestprivate static <T> Seq<PriorityQueueBase.Node<T>> PriorityQueueBase.ins(Comparator<? super T> comparator, PriorityQueueBase.Node<T> tree, Seq<PriorityQueueBase.Node<T>> forest) fun ins (t, []) = [t] * | ins (t, t' :: ts) = (∗ rank t ≤ rank t' ∗) * if rank t invalid input: '<' rank t' then t :: t' :: ts * else ins (link (t, t'), ts)(package private) static <T> Seq<PriorityQueueBase.Node<T>> PriorityQueueBase.insert(Comparator<? super T> comparator, T element, Seq<PriorityQueueBase.Node<T>> forest) fun insert (x, ts as t1 :: t2 :: rest) = * if rank t1 = rank t2 then skewLink(Node(x,0,[]),t1,t2) :: rest * else Node (x,0,[]) :: ts * | insert (x, ts) = Node (x,0,[]) :: ts(package private) static <T> Seq<PriorityQueueBase.Node<T>> PriorityQueueBase.meld(Comparator<? super T> comparator, Seq<PriorityQueueBase.Node<T>> source, Seq<PriorityQueueBase.Node<T>> target) fun meld (ts, ts') = meldUniq (uniqify ts, uniqify ts')private static <T> Seq<PriorityQueueBase.Node<T>> PriorityQueueBase.meldUnique(Comparator<? super T> comparator, Seq<PriorityQueueBase.Node<T>> forest1, Seq<PriorityQueueBase.Node<T>> forest2) fun meldUniq ([], ts) = ts * | meldUniq (ts, []) = ts * | meldUniq (t1 :: ts1, t2 :: ts2) = * if rank t1 invalid input: '<' rank t2 then t1 :: meldUniq (ts1, t2 :: ts2) * else if rank t2 invalid input: '<' rank t1 then t2 :: meldUniq (t1 :: ts1, ts2) * else ins (link (t1, t2), meldUniq (ts1, ts2))static <T> Seq<T> Narrows aSeq<? extends T>toSeq<T>via a safe unchecked cast.(package private) static <T> PriorityQueueBase.Node<T> PriorityQueueBase.Node.of(T value, int rank, Seq<PriorityQueueBase.Node<T>> children) private static <T> Seq<PriorityQueueBase.Node<T>> PriorityQueueBase.rebuild(Comparator<? super T> comparator, Seq<PriorityQueueBase.Node<T>> forest) Separate the rank 0 trees from the rest, rebuild the 0 rank ones and merge them back(package private) static <T, U, R extends Seq<T>>
RCollections.sortBy(Seq<? extends T> source, Comparator<? super U> comparator, Function<? super T, ? extends U> mapper, Collector<T, ?, R> collector) private static <T> Seq<PriorityQueueBase.Node<T>> PriorityQueueBase.uniqify(Comparator<? super T> comparator, Seq<PriorityQueueBase.Node<T>> forest) fun uniqify [] = [] * | uniqify (t :: ts) = ins (t, ts) (∗ eliminate initial duplicate ∗)private PriorityQueue<T> PriorityQueue.with(Seq<PriorityQueueBase.Node<T>> forest, int size) Constructors in io.vavr.collection with parameters of type SeqModifierConstructorDescriptionprivateNode(T root, int rank, Seq<PriorityQueueBase.Node<T>> children) privatePriorityQueue(Comparator<? super T> comparator, Seq<PriorityQueueBase.Node<T>> forest, int size) -
Uses of Seq in io.vavr.concurrent
Methods in io.vavr.concurrent that return types with arguments of type SeqModifier and TypeMethodDescriptionReduces multipleFutureinstances into a singleFutureby transforming anIterable<Future<? extends T>>into aFuture<Seq<T>>.Future.sequence(@NonNull Executor executor, @NonNull Iterable<? extends Future<? extends T>> futures) Reduces multipleFutureinstances into a singleFutureby transforming anIterable<Future<? extends T>>into aFuture<Seq<T>>.Future.traverse(@NonNull Iterable<? extends T> values, @NonNull Function<? super T, ? extends Future<? extends U>> mapper) Maps the values of an iterable in parallel to a sequence of mapped values, producing a singleFutureby transforming anIterable<? extends T>into aFuture<Seq<U>>.Future.traverse(@NonNull Executor executor, @NonNull Iterable<? extends T> values, @NonNull Function<? super T, ? extends Future<? extends U>> mapper) Maps the values of an iterable in parallel to a sequence of mapped values, producing a singleFutureby transforming anIterable<? extends T>into aFuture<Seq<U>>. -
Uses of Seq in io.vavr.control
Methods in io.vavr.control that return types with arguments of type SeqModifier and TypeMethodDescriptiondefault <U> Validation<Seq<E>, U> Applies a validation containing a function to this validation's value, combining errors if both are invalid.<R> Validation<Seq<E>, R> Applies a binary function to the values of the two validations held by this builder.<R> Validation<Seq<E>, R> Applies a ternary function to the values of the three validations held by this builder.<R> Validation<Seq<E>, R> Applies a quaternary function to the values of the four validations held by this builder.<R> Validation<Seq<E>, R> Applies a quinary function to the values of the five validations held by this builder.<R> Validation<Seq<E>, R> Applies a senary function to the values of the six validations held by this builder.<R> Validation<Seq<E>, R> Applies a septenary function to the values of the seven validations held by this builder.<R> Validation<Seq<E>, R> Applies an octonary function to the values of the eight validations held by this builder.Reduces multipleOptionvalues into a singleOptionby transforming anIterable<Option<? extends T>>into anOption<Seq<T>>.static <E,T> Validation <Seq<E>, Seq<T>> Validation.sequence(@NonNull Iterable<? extends Validation<? extends Seq<? extends E>, ? extends T>> values) Reduces manyValidationinstances into a singleValidationby transforming anIterable<Validation<? extends T>>into aValidation<Seq<T>>.static <E,T> Validation <Seq<E>, Seq<T>> Validation.sequence(@NonNull Iterable<? extends Validation<? extends Seq<? extends E>, ? extends T>> values) Reduces manyValidationinstances into a singleValidationby transforming anIterable<Validation<? extends T>>into aValidation<Seq<T>>.Either.sequenceRight(@NonNull Iterable<? extends Either<? extends L, ? extends R>> eithers) Either.traverse(@NonNull Iterable<? extends T> values, @NonNull Function<? super T, ? extends Either<? extends L, ? extends R>> mapper) Transforms anIterableof values into a singleEither<Seq<L>, Seq<R>>by applying a mapping function that returns anEitherfor each value.Either.traverse(@NonNull Iterable<? extends T> values, @NonNull Function<? super T, ? extends Either<? extends L, ? extends R>> mapper) Transforms anIterableof values into a singleEither<Seq<L>, Seq<R>>by applying a mapping function that returns anEitherfor each value.Option.traverse(@NonNull Iterable<? extends T> values, @NonNull Function<? super T, ? extends Option<? extends U>> mapper) Maps the elements of an iterable intoOptionvalues and collects the results into a singleOption.Try.traverse(@NonNull Iterable<? extends T> values, @NonNull Function<? super T, ? extends Try<? extends U>> mapper) static <E,T, U> Validation <Seq<E>, Seq<U>> Validation.traverse(@NonNull Iterable<? extends T> values, @NonNull Function<? super T, ? extends Validation<? extends Seq<? extends E>, ? extends U>> mapper) Maps the values of an iterable to a sequence of mapped values into a singleValidationby transforming anIterable<? extends T>into aValidation<Seq<U>>.static <E,T, U> Validation <Seq<E>, Seq<U>> Validation.traverse(@NonNull Iterable<? extends T> values, @NonNull Function<? super T, ? extends Validation<? extends Seq<? extends E>, ? extends U>> mapper) Maps the values of an iterable to a sequence of mapped values into a singleValidationby transforming anIterable<? extends T>into aValidation<Seq<U>>.Either.traverseRight(@NonNull Iterable<? extends T> values, @NonNull Function<? super T, ? extends Either<? extends L, ? extends R>> mapper) Transforms anIterableof values into a singleEither<Seq<L>, Seq<R>>by applying a mapping function that returns anEitherfor each element.Method parameters in io.vavr.control with type arguments of type SeqModifier and TypeMethodDescriptiondefault <U> Validation<Seq<E>, U> Applies a validation containing a function to this validation's value, combining errors if both are invalid.static <E,T> Validation <Seq<E>, Seq<T>> Validation.sequence(@NonNull Iterable<? extends Validation<? extends Seq<? extends E>, ? extends T>> values) Reduces manyValidationinstances into a singleValidationby transforming anIterable<Validation<? extends T>>into aValidation<Seq<T>>.static <E,T, U> Validation <Seq<E>, Seq<U>> Validation.traverse(@NonNull Iterable<? extends T> values, @NonNull Function<? super T, ? extends Validation<? extends Seq<? extends E>, ? extends U>> mapper) Maps the values of an iterable to a sequence of mapped values into a singleValidationby transforming anIterable<? extends T>into aValidation<Seq<U>>.
Seq.reject(Predicate)