fp-either-ref

Installation
SKILL.md

Either Quick Reference

Either = success or failure. Right(value) or Left(error).

Create

import * as E from 'fp-ts/Either'

E.right(value)           // Success
E.left(error)            // Failure
E.fromNullable(err)(x)   // null → Left(err), else Right(x)
E.tryCatch(fn, toError)  // try/catch → Either

Transform

Installs
2
GitHub Stars
9
First Seen
14 days ago
fp-either-ref — whatiskadudoing/fp-ts-skills