containers v0.7.1 Containers.Sequenceable protocol View Source
provides and_then
function to chain compuations together
If a custome structure implements a field value
in the struct,
then that structe can derive Sequenceable
.
Link to this section Summary
Functions
struct
argument is some sturct that implements Sequenceable
Link to this section Types
Link to this section Functions
Link to this function
and_then(struct, f)
View Source
and_then(Containers.sequenceable, (any -> Containers.sequenceable)) :: Containers.sequenceable
struct
argument is some sturct that implements Sequenceable
f
is a function that takes in the inner value potentially does something
to the inner value and wraps it back up in a struct