Skip to content

state_t + error_t example? #4

Description

@RoadRunnr

Could you provide an example how to combine a state_t and error_t monad, please?

What I'm looking for is that my function can return either {ok, {Result, NewState}}, {ok NewState} or {error, Error}.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions