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

Usage

import * as mod from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/sync.ts";

This file contains the Sync algebraic data type. Sync is an lazy function that takes no inputs. In other functional languages and runtimes sync is referred to as IO.

§Variables

ApplicableSync
bind
bindTo
FlatmappableSync
FoldableSync
MappableSync
tap
TraversableSync
WrappableSync

§Functions

apply

Apply a function wrapped in a Sync to a value wrapped in a Sync.

flatmap

Chain Sync computations together.

fold

Fold over a Sync computation to produce a single value.

getCombinableSync

Create a Combinable instance for Sync given a Combinable for the inner type.

getInitializableSync

Create an Initializable instance for Sync given an Initializable for the inner type.

map

Apply a function to the result of a Sync computation.

traverse

Traverse over a Sync using the supplied Applicable.

wrap

Wrap a value in a Sync computation.

§Interfaces

KindSync

Specifies Sync as a Higher Kinded Type, with covariant parameter A corresponding to the 0th index of any substitutions.

§Type Aliases

Sync

The Sync type represents a lazy computation that returns a value of type A.