A scalaz.Traverse where traverse
is total over
scalaz.Applys. That is, toList
cannot return an empty list.
- Companion
- object
Type members
Classlikes
Inherited classlikes
Value members
Abstract methods
Concrete methods
The composition of Traverse1 F
and G
, [x]F[G[x]]
, is a Traverse1
The composition of Traverse1 F
and G
, [x]F[G[x]]
, is a Traverse1
The product of Traverse1 F
and G
, [x](F[x], G[x]])
, is a Traverse1
The product of Traverse1 F
and G
, [x](F[x], G[x]])
, is a Traverse1
The product of Traverse1 F
and Traverse G
, [x](F[x], G[x]])
, is a Traverse1
The product of Traverse1 F
and Traverse G
, [x](F[x], G[x]])
, is a Traverse1
A version of sequence1
where a subsequent monadic join is applied to the inner result
A version of sequence1
where a subsequent monadic join is applied to the inner result
A version of traverse1
where a subsequent monadic join is applied to the inner result.
A version of traverse1
where a subsequent monadic join is applied to the inner result.
Inherited methods
Whether all A
s in fa
yield true from p
.
Whether all A
s in fa
yield true from p
.
- Inherited from
- Foldable
Whether any A
s in fa
yield true from p
.
Whether any A
s in fa
yield true from p
.
- Inherited from
- Foldable
The composition of Foldable F
and Bifoldable G
, [x, y]F[G[x, y]]
, is a Bifoldable
The composition of Foldable F
and Bifoldable G
, [x, y]F[G[x, y]]
, is a Bifoldable
- Inherited from
- Foldable
The composition of Traverse F
and Bitraverse G
, [x, y]F[G[x, y]]
, is a Bitraverse
The composition of Traverse F
and Bitraverse G
, [x, y]F[G[x, y]]
, is a Bitraverse
- Inherited from
- Traverse
The composition of Functor F
and Bifunctor G
, [x, y]F[G[x, y]]
, is a Bifunctor
The composition of Functor F
and Bifunctor G
, [x, y]F[G[x, y]]
, is a Bifunctor
- Inherited from
- Functor
The composition of Foldable1 F
and G
, [x]F[G[x]]
, is a Foldable1
The composition of Foldable1 F
and G
, [x]F[G[x]]
, is a Foldable1
- Inherited from
- Foldable1
The composition of Foldables F
and G
, [x]F[G[x]]
, is a Foldable
The composition of Foldables F
and G
, [x]F[G[x]]
, is a Foldable
- Inherited from
- Foldable
The composition of Traverses F
and G
, [x]F[G[x]]
, is a Traverse
The composition of Traverses F
and G
, [x]F[G[x]]
, is a Traverse
- Inherited from
- Traverse
The composition of Functors F
and G
, [x]F[G[x]]
, is a Functor
The composition of Functors F
and G
, [x]F[G[x]]
, is a Functor
- Inherited from
- Functor
The smallest and largest elements of fa
or None if fa
is empty
The smallest and largest elements of fa
or None if fa
is empty
- Inherited from
- Foldable
The elements (amin, amax) of fa
which yield the smallest and largest values of f(a)
, respectively, or None if fa
is empty
The elements (amin, amax) of fa
which yield the smallest and largest values of f(a)
, respectively, or None if fa
is empty
- Inherited from
- Foldable
The smallest and largest values of f(a)
for each element a
of fa
, or None if fa
is empty
The smallest and largest values of f(a)
for each element a
of fa
, or None if fa
is empty
- Inherited from
- Foldable
map elements in a Foldable with a monadic function and return the first element that is mapped successfully
map elements in a Foldable with a monadic function and return the first element that is mapped successfully
- Inherited from
- Foldable
Combine the elements of a structure using a monoid.
Combine the elements of a structure using a monoid.
- Inherited from
- Foldable
Like fold
but returning None
if the foldable is empty and Some
otherwise
Like fold
but returning None
if the foldable is empty and Some
otherwise
- Inherited from
- Foldable
Left-associative, monadic fold of a structure.
Left-associative, monadic fold of a structure.
- Inherited from
- Foldable
Specialization of foldRightM when B
has a Monoid
.
Specialization of foldRightM when B
has a Monoid
.
- Inherited from
- Foldable
Right-associative fold of a structure.
Right-associative fold of a structure.
- Inherited from
- Foldable1
Right-associative fold of a structure.
Right-associative fold of a structure.
- Inherited from
- Foldable1
Right-associative, monadic fold of a structure.
Right-associative, monadic fold of a structure.
- Inherited from
- Foldable
Pair all A
s in fa
with the result of function application.
Pair all A
s in fa
with the result of function application.
- Inherited from
- Functor
The composition of Functor F and Contravariant G, [x]F[G[x]]
,
is contravariant.
The composition of Functor F and Contravariant G, [x]F[G[x]]
,
is contravariant.
- Inherited from
- Functor
- Returns
the element at index
i
in aSome
, orNone
if the given index falls outside of the range- Inherited from
- Foldable
- Returns
the element at index
i
, ordefault
if the given index falls outside of the range- Inherited from
- Foldable
Insert an A
between every A, yielding the sum.
Insert an A
between every A, yielding the sum.
- Inherited from
- Foldable1
Deforested alias for toStream(fa).size
.
Deforested alias for toStream(fa).size
.
- Inherited from
- Foldable
Lift apply(a)
, and apply the result to f
.
Lift apply(a)
, and apply the result to f
.
- Inherited from
- Functor
The element a
of fa
which yield the greatest value of f(a)
.
The element a
of fa
which yield the greatest value of f(a)
.
- Inherited from
- Foldable1
The greatest value of f(a)
for each element a
of fa
.
The greatest value of f(a)
for each element a
of fa
.
- Inherited from
- Foldable1
The element a
of fa
which yield the smallest value of f(a)
.
The element a
of fa
which yield the smallest value of f(a)
.
- Inherited from
- Foldable1
The smallest value of f(a)
for each element a
of fa
.
The smallest value of f(a)
for each element a
of fa
.
- Inherited from
- Foldable1
The product of Foldable1 F
and G
, [x](F[x], G[x]])
, is a Foldable1
The product of Foldable1 F
and G
, [x](F[x], G[x]])
, is a Foldable1
- Inherited from
- Foldable1
The product of Foldables F
and G
, [x](F[x], G[x]])
, is a Foldable
The product of Foldables F
and G
, [x](F[x], G[x]])
, is a Foldable
- Inherited from
- Foldable
The product of Traverses F
and G
, [x](F[x], G[x]])
, is a Traverse
The product of Traverses F
and G
, [x](F[x], G[x]])
, is a Traverse
- Inherited from
- Traverse
The product of Functors F
and G
, [x](F[x], G[x]])
, is a Functor
The product of Functors F
and G
, [x](F[x], G[x]])
, is a Functor
- Inherited from
- Functor
The product of Foldable1 F
and Foldable G
, [x](F[x], G[x]])
, is a Foldable1
The product of Foldable1 F
and Foldable G
, [x](F[x], G[x]])
, is a Foldable1
- Inherited from
- Foldable1
The product of Foldable F
and Foldable1 G
, [x](F[x], G[x]])
, is a Foldable1
The product of Foldable F
and Foldable1 G
, [x](F[x], G[x]])
, is a Foldable1
- Inherited from
- Foldable
The product of Traverse F
and Traverse1 G
, [x](F[x], G[x]])
, is a Traverse1
The product of Traverse F
and Traverse1 G
, [x](F[x], G[x]])
, is a Traverse1
- Inherited from
- Traverse
Sum using a polymorphic monoid (PlusEmpty). Should support early termination, i.e. summing no more elements than is needed to determine the result.
Map elements to G[B]
and sum using a polymorphic monoid (PlusEmpty).
Should support early termination, i.e. mapping and summing
no more elements than is needed to determine the result.
Selects groups of elements that satisfy p and discards others.
Selects groups of elements that satisfy p and discards others.
- Inherited from
- Foldable
sequence_
for Free. collapses into a single Free *
sequence_
for Free. collapses into a single Free *
- Inherited from
- Foldable
A version of sequence
where a subsequent monadic join is applied to the inner result
A version of sequence
where a subsequent monadic join is applied to the inner result
- Inherited from
- Traverse
A version of sequence
that infers the nested type constructor.
A version of sequence
that infers the nested type constructor.
- Inherited from
- Traverse
Strict sequencing in an applicative functor M
that ignores the value in fa
.
Strict sequencing in an applicative functor M
that ignores the value in fa
.
- Inherited from
- Foldable
Splits the elements into groups that produce the same result by a function f.
Splits the elements into groups that produce the same result by a function f.
- Inherited from
- Foldable
Splits into groups of elements that are transitively dependant by a relation r.
Splits into groups of elements that are transitively dependant by a relation r.
- Inherited from
- Foldable
Splits the elements into groups that alternatively satisfy and don't satisfy the predicate p.
Splits the elements into groups that alternatively satisfy and don't satisfy the predicate p.
- Inherited from
- Foldable
- Inherited from
- Foldable1
Traverse fa
with a Kleisli[G, S, B]
, internally using a Trampoline
to avoid stack overflow.
Traverse fa
with a Kleisli[G, S, B]
, internally using a Trampoline
to avoid stack overflow.
- Inherited from
- Traverse
A version of traverse
where a subsequent monadic join is applied to the inner result.
A version of traverse
where a subsequent monadic join is applied to the inner result.
- Inherited from
- Traverse
Traverse fa
with a State[S, G[B]]
, internally using a Trampoline
to avoid stack overflow.
Traverse fa
with a State[S, G[B]]
, internally using a Trampoline
to avoid stack overflow.
- Inherited from
- Traverse
A version of traverse
that infers the type constructor G
.
A version of traverse
that infers the type constructor G
.
- Inherited from
- Traverse
A version of traverse_
that infers the type constructor M
.
A version of traverse_
that infers the type constructor M
.
- Inherited from
- Foldable
Strict traversal in an applicative functor M
that ignores the result of f
.
Strict traversal in an applicative functor M
that ignores the result of f
.
- Inherited from
- Foldable
Empty fa
of meaningful pure values, preserving its
structure.
Empty fa
of meaningful pure values, preserving its
structure.
- Inherited from
- Functor
Functors are covariant by nature, so we can treat an F[A]
as
an F[B]
if A
is a subtype of B
.
Functors are covariant by nature, so we can treat an F[A]
as
an F[B]
if A
is a subtype of B
.
- Inherited from
- Functor
Converts ma
to a value of type F[B]
using the provided bijection.
Converts ma
to a value of type F[B]
using the provided bijection.
- Inherited from
- InvariantFunctor
Converts ma
to a value of type F[B]
using the provided isomorphism.
Converts ma
to a value of type F[B]
using the provided isomorphism.
- Inherited from
- InvariantFunctor