Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Usage

import * as fun from "https://raw.githubusercontent.com/baetheus/fun/main/either.ts";

This file contains the Either algebraic data type. Either is used to represent two exclusive types. Generally, Either is used to represent either a successful computation or a failed computation, with the result of the failed computation being kept in Left.

§Variables

ApplicableEither
BimappableEither
bind
bindTo
FailableEither
FlatmappableEither
FoldableEither
MappableEither
tap
TraversableEither
WrappableEither

§Functions

alt
apply
bimap
fail
flatmap
flatmapFirst
fold
fromNullable
fromPredicate
getCombinableEither
getComparableEither
getFilterableEither
getFlatmappableRight
getInitializableEither
getLeft
getOrElse
getRight
getShowableEither
getSortableEither
isLeft
isRight
left
map
mapSecond
match
recover
right
swap
traverse
tryCatch
wrap

§Interfaces

KindEither
KindRightEither

§Type Aliases

Either
Left
Right