Skip to main content
Module

x/functional/mod.js

Common Functional Programming Algebraic data types for JavaScript that is compatible with most modern browsers and Deno.
Latest
import * as functional from "https://deno.land/x/functional@v1.3.4/mod.js";

Variables

alt

Alt a -> Alt b -> Alt a|b

Utilities

chainLift

(a -> b -> c) -> Chainable a -> Functor b -> Chainable c

chainRec

ChainRec r => ((a -> c, b -> c, a) -> r c) -> a -> r b

Either

Either

evert

Applicative a => a -> a[] -> a

IO

log

String -> a -> a

Maybe

Pair

runSequentially

Chain c => (...c) -> c

safeExtract

String -> Either a -> a

stream

((a, b) -> a) -> a -> AsyncIterable b -> a

Task