0.7.0-alpha.2 • Published 7 years ago
lambdash.either v0.7.0-alpha.2
Either
This package implements an either type for lambdash.
Installation
Use npm.
npm install --save lambdash.either
Implements
- Eq
- Ord
- Functor
- Semigroup (If its right type implements Semigroup)
- Monoid
- Foldable
- Applicative
- Monad
- Show
Typed Either
By default the Either implementation accepts any value for the left or the right. You can create typed Either like so:
var _ = require('lambdash');
var Either = require('lambdash.either')
// An either that accepts strings on the left and numbers on the right
var StringOrNumber = Either.Typed(_.Str, _.Num);
0.7.0-alpha.2
7 years ago
0.6.0
8 years ago