Skip to content

add Maybe monad, mcompose, and makeSafe #6

Open
@kevinbarabash

Description

@kevinbarabash

The goal is to provide a way to safely compose functions without having to worry about any one of the failing.

// makeSafe :: fn -> * -> Maybe
makeSafe = (fn) => curryN(fn.length, (...args) => Maybe.of(fn(...args)));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions