0.7.0-alpha.2 • Published 7 years ago
lambdash.maybe v0.7.0-alpha.2
Maybe
This package implements a maybe type for lambdash.
Installation
Use npm.
npm install --save lambdash.maybe
Implements
- Eq
- Ord
- Functor
- Semigroup
- Monoid
- Foldable
- Applicative
- Monad
- Show
Typed Maybe
By default the Maybe implementation accepts any value. You can create typed maybe like so:
var _ = require('lambdash');
var Maybe = require('lambdash.maybe');
// A list that only accepts numbers
var MaybeNum = Maybe.Typed(_.Num);