Uses of Class
fj.data.Seq
Packages that use Seq
Package
Description
Types that set the premise for the existence of Functional Java.
Common algebraic data types.
-
Uses of Seq in fj
-
Uses of Seq in fj.data
Modifier and TypeMethodDescriptionAppends the given sequence to this sequence.static <A> Seq
<A> Seq.arraySeq
(A... as) Constructs a sequence from the array.<B> Seq
<B> Bind the given function across this seq.Inserts the given element at the front of this sequence.Seq.delete
(int i) Delete the element at the given index.Seq.drop
(int n) Drops the given number of elements from the head of this sequence if they are available.static <A> Seq
<A> Seq.empty()
The empty sequence.static <A> Seq
<A> Seq.fromJavaList
(List<A> list) Constructs a sequence from the given list.Seq.init()
The sequence without the last element.Inserts the element at the given index.static <A> Seq
<A> Seq.iterableSeq
(Iterable<A> i) Constructs a sequence from the iterable.static <A> Seq
<A> Seq.iteratorSeq
(Iterator<A> i) Constructs a sequence from the iterator.static <A> Seq
<A> Constructs a sequence from the given list.<B> Seq
<B> static <A> Seq
<A> Seq.seq
(A... as) Constructs a sequence from the given elements.List.sequenceSeq
(List<Seq<B>> list) Sequence the given list and collect the output as a seq.Option.sequenceSeq
(Option<Seq<B>> option) Sequence the given option and collect the output as a seq.Seq.sequenceSeq
(Seq<Seq<B>> seq) Sequence the given seq and collect the output as a seq.Stream.sequenceSeq
(Stream<Seq<B>> stream) Sequence the given stream and collect the output as a seq.static final <E,
C> Seq <Validation<E, C>> Validation.sequenceSeq
(Validation<E, Seq<C>> validation) Sequence the given validation and collect the output as a seq.static <A> Seq
<A> Seq.single
(A a) A singleton sequence.Inserts the given element at the end of this sequence.Seq.tail()
The sequence without the first element.Seq.take
(int n) Takes the given number of elements from the head of this sequence if they are available.List.traverseSeq
(F<A, Seq<B>> f) Traverse this list with the given function and collect the output as a seq.Option.traverseSeq
(F<A, Seq<B>> f) Traverse this option with the given function and collect the output a seq.Seq.traverseSeq
(F<A, Seq<B>> f) Traverse this seq with the given function and collect the output as a seq.Stream.traverseSeq
(F<A, Seq<B>> f) Traverse this stream with the given function and collect the output as a seq.final <C> Seq
<Validation<E, C>> Validation.traverseSeq
(F<T, Seq<C>> f) Traverse this validation with the given function and collect the output as a seq.Replace the element at the given index with the supplied value.Modifier and TypeMethodDescriptionSeq.sequenceEither
(Seq<Either<L, B>> seq) Sequence the given seq and collect the output on the right side of an either.Seq.sequenceEitherLeft
(Seq<Either<B, R>> seq) Sequence the given seq and collect the output on the left side of an either.Seq.sequenceEitherRight
(Seq<Either<L, B>> seq) Sequence the given seq and collect the output on the right side of an either.Sequence the given seq and collect the output as a function.Seq.sequenceIO
(Seq<IO<B>> seq) Sequence the given seq and collect the output as an IO.Seq.sequenceList
(Seq<List<B>> seq) Sequence the given seq and collect the output as a list.Seq.sequenceOption
(Seq<Option<B>> seq) Sequence the given seq and collect the output as an seq.Seq.sequenceP1
(Seq<P1<B>> seq) Sequence the given seq and collect the output as a P1.Seq.sequenceSeq
(Seq<Seq<B>> seq) Sequence the given seq and collect the output as a seq.Seq.sequenceSet
(Ord<B> ord, Seq<Set<B>> seq) Sequence the given seq and collect the output as a set; use the given ord to order the set.Seq.sequenceStream
(Seq<Stream<B>> seq) Sequence the given seq and collect the output as a stream.static <B> Trampoline
<Seq<B>> Seq.sequenceTrampoline
(Seq<Trampoline<B>> seq) Sequence the given seq and collect the output as a trampoline.static <E,
B> Validation <E, Seq<B>> Seq.sequenceValidation
(Seq<Validation<E, B>> seq) Sequence the given seq and collect the output as a validation.static <E,
B> Validation <E, Seq<B>> Seq.sequenceValidation
(Semigroup<E> semigroup, Seq<Validation<E, B>> seq) Sequence the given seq and collect the output as a validation; use the given semigroup to reduce the errors.Seq.split
(int i) Splits this sequence into a pair of sequences at the given position.Seq.split
(int i) Splits this sequence into a pair of sequences at the given position.Seq.traverseEither
(F<A, Either<L, B>> f) Traverse this seq with the given function and collect the output on the right side of an either.Seq.traverseEitherLeft
(F<A, Either<B, R>> f) Traverse this seq with the given function and collect the output on the left side of an either.Seq.traverseEitherRight
(F<A, Either<L, B>> f) Traverse this seq with the given function and collect the output on the right side of an either.Traverse this seq with the given function and collect the output as a function.Seq.traverseIO
(F<A, IO<B>> f) Traverse this seq with the given function and collect the output as an IO.Seq.traverseList
(F<A, List<B>> f) Traverse this seq with the given function and collect the output as a list.Seq.traverseOption
(F<A, Option<B>> f) Traverses through the Seq with the given functionSeq.traverseP1
(F<A, P1<B>> f) Traverse this seq with the given function and collect the output as a p1.Seq.traverseSeq
(F<A, Seq<B>> f) Traverse this seq with the given function and collect the output as a seq.Seq.traverseSet
(Ord<B> ord, F<A, Set<B>> f) Traverse this seq with the given function and collect the output as a set; use the given ord to order the set.Seq.traverseStream
(F<A, Stream<B>> f) Traverse this seq with the given function and collect the output as a stream.<B> Trampoline
<Seq<B>> Seq.traverseTrampoline
(F<A, Trampoline<B>> f) Traverse this seq with the given function and collect the output as a trampoline.<E,
B> Validation <E, Seq<B>> Seq.traverseValidation
(F<A, Validation<E, B>> f) Traverse this seq with the given function and collect the output as a validation.<E,
B> Validation <E, Seq<B>> Seq.traverseValidation
(Semigroup<E> semigroup, F<A, Validation<E, B>> f) Traverse this seq with the given function and collect the output as a validation; use the given semigroup to reduce the errors.Modifier and TypeMethodDescriptionAppends the given sequence to this sequence.Seq.sequenceEither
(Seq<Either<L, B>> seq) Sequence the given seq and collect the output on the right side of an either.Seq.sequenceEitherLeft
(Seq<Either<B, R>> seq) Sequence the given seq and collect the output on the left side of an either.Seq.sequenceEitherRight
(Seq<Either<L, B>> seq) Sequence the given seq and collect the output on the right side of an either.Sequence the given seq and collect the output as a function.Seq.sequenceIO
(Seq<IO<B>> seq) Sequence the given seq and collect the output as an IO.Seq.sequenceList
(Seq<List<B>> seq) Sequence the given seq and collect the output as a list.Seq.sequenceOption
(Seq<Option<B>> seq) Sequence the given seq and collect the output as an seq.Seq.sequenceP1
(Seq<P1<B>> seq) Sequence the given seq and collect the output as a P1.Seq.sequenceSeq
(Seq<Seq<B>> seq) Sequence the given seq and collect the output as a seq.Seq.sequenceSet
(Ord<B> ord, Seq<Set<B>> seq) Sequence the given seq and collect the output as a set; use the given ord to order the set.Seq.sequenceStream
(Seq<Stream<B>> seq) Sequence the given seq and collect the output as a stream.static <B> Trampoline
<Seq<B>> Seq.sequenceTrampoline
(Seq<Trampoline<B>> seq) Sequence the given seq and collect the output as a trampoline.static <E,
B> Validation <E, Seq<B>> Seq.sequenceValidation
(Seq<Validation<E, B>> seq) Sequence the given seq and collect the output as a validation.static <E,
B> Validation <E, Seq<B>> Seq.sequenceValidation
(Semigroup<E> semigroup, Seq<Validation<E, B>> seq) Sequence the given seq and collect the output as a validation; use the given semigroup to reduce the errors.Modifier and TypeMethodDescription<B> Seq
<B> Bind the given function across this seq.List.sequenceSeq
(List<Seq<B>> list) Sequence the given list and collect the output as a seq.Option.sequenceSeq
(Option<Seq<B>> option) Sequence the given option and collect the output as a seq.Seq.sequenceSeq
(Seq<Seq<B>> seq) Sequence the given seq and collect the output as a seq.Stream.sequenceSeq
(Stream<Seq<B>> stream) Sequence the given stream and collect the output as a seq.static final <E,
C> Seq <Validation<E, C>> Validation.sequenceSeq
(Validation<E, Seq<C>> validation) Sequence the given validation and collect the output as a seq.List.traverseSeq
(F<A, Seq<B>> f) Traverse this list with the given function and collect the output as a seq.Option.traverseSeq
(F<A, Seq<B>> f) Traverse this option with the given function and collect the output a seq.Seq.traverseSeq
(F<A, Seq<B>> f) Traverse this seq with the given function and collect the output as a seq.Stream.traverseSeq
(F<A, Seq<B>> f) Traverse this stream with the given function and collect the output as a seq.final <C> Seq
<Validation<E, C>> Validation.traverseSeq
(F<T, Seq<C>> f) Traverse this validation with the given function and collect the output as a seq. -
Uses of Seq in fj.data.hamt
Fields in fj.data.hamt declared as SeqMethods in fj.data.hamt that return SeqMethods in fj.data.hamt with parameters of type SeqModifier and TypeMethodDescriptionprivate static <K,
V> HashArrayMappedTrie <K, V> Static constructor for a HAMT instance.Constructors in fj.data.hamt with parameters of type Seq