Skuld.Comp.BaseOps (skuld v0.1.13)
View SourceBase operations automatically imported into comp blocks.
Currently provides:
return/1- lift a pure value into a computation (delegates toSkuld.Comp.return/1)
Summary
Functions
@spec return(term()) :: Skuld.Comp.Types.computation()
Lift a pure value into a computation.
This delegates to Skuld.Comp.return/1, provided for ergonomic use
in comp blocks where return(value) reads more naturally.
Example
comp do
x <- State.get()
return(x + 1)
end