Transform wrapped value with given function.
Transform wrapped value with given function.
type of wrapped value
result type of provided function f
wrapped value
function
wrapped result of function f
applied to un
Combine two wrapped values into wrapped pair of them.
Combine two wrapped values into wrapped pair of them.
This method allows to decide on error handling semantics for
given type F
.
type of first value
type of second value
first wrapped value
second wrapped value
wrapped pair of values
Wrap a value into the type constructor F
.
Wrap a value into the type constructor F
.
type of value
value to wrap
wrapped value
Perform traversal of function f
on provided iterator of elements.
Perform traversal of function f
on provided iterator of elements.
Primarily used to perform recursive lifted transformation (given as function f
) on a collection
type (Array, Seq, List, Vector, Map, etc.) for which we can obtain an Iterator[A]
.
This method allows to decide on error handling semantics for given type F
, when transforming
between collections.
type of collection where transformed elements are stored; note that this is not a type constructor, but a type with applied argument, so it can be List[B], Map[K, V], etc.
type of elements being iterated
target element type of function f
iterator of elements of type A
function to apply to elements of type A
, returning F[B]
factory for collection type M
wrapped collection of type F[M]
(Since version ) see corresponding Javadoc for more information.
Type class supporting lifted transformers.
In order to create lifted transformation from
A
toF[B]
, we need these few operations to be implemented for specificF
wrapper type.wrapper type constructor
TransformerFSupport.TransformerFEitherErrorAccumulatingSupport for implementation for
Either
TransformerFSupport.TransformerFOptionSupport for implementation for
Option