Skip to content

Can you add a Switch method to end the monad chain #4

@iroelperez

Description

@iroelperez

public void Switch(Action success, Action error)
{
if (IsValue)
success?.Invoke(Value);
else
error?.Invoke(Exception!);
}

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