Skuld.Comp.BaseOps (skuld v0.1.13)

View Source

Base operations automatically imported into comp blocks.

Currently provides:

Summary

Functions

Lift a pure value into a computation.

Functions

return(x)

@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