Skip to content

state_t + error_t example? #4

@RoadRunnr

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}.

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