Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Maybe function #11

Closed
iamdionysus opened this issue Mar 8, 2016 · 2 comments
Closed

Maybe function #11

iamdionysus opened this issue Mar 8, 2016 · 2 comments

Comments

@iamdionysus
Copy link

Hi, first of all thanks for the great work. This is the best readable implementation for Monad in javascript kind. I wonder whethere there is a way to construct Maybe without new like this for convenience.

var maybePlusOne = Maybe(x).map(n => n + 1).caseOf(...)

@iamdionysus iamdionysus changed the title Scala compatible name Maybe function Mar 8, 2016
@iamdionysus
Copy link
Author

Silly me. I just found there is maybe function.

@cbowdon
Copy link
Owner

cbowdon commented Mar 8, 2016

Thanks for your kind words :-)

Perhaps some more comprehensive documentation is in order...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants