public static final class FunctionType.ReaderInstance<R> extends Object implements Representable (R) -> _
Constructor and Description |
---|
ReaderInstance() |
Modifier and Type | Method and Description |
---|---|
<B> (R) -> B |
from((R) -> B input)
Converts a function to a value of the container type.
|
<T,R2> (R) -> R2 |
map((? super T) -> ? extends R2 func,
(R) -> T ts)
Maps the contents of
ts from T to R using the func . |
<B> (R) -> B |
to((R) -> B input)
Converts the given container to a function.
|
public <T,R2> (R) -> R2 map((? super T) -> ? extends R2 func, (R) -> T ts)
Functor
ts
from T
to R
using the func
.public <B> (R) -> B to((R) -> B input)
Representable
to
in interface Representable (R) -> _
B
- The type of contained value.input
- The container.public <B> (R) -> B from((R) -> B input)
Representable
from
in interface Representable (R) -> _
B
- The type of contained value.input
- A function from the input type to the contained value type.