Skip to main content
Module

x/fun/mod.ts>tree.tree

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
interface tree.tree
implements Kind
Re-export
import { type tree } from "https://deno.land/x/fun@v2.0.0-alpha.12/mod.ts";
const { tree } = tree;

KindTree is the Kind implementation for a Tree.

Properties

readonly
kind: Tree<Out<this, 0>>
type alias tree.tree
Re-export
import { type tree } from "https://deno.land/x/fun@v2.0.0-alpha.12/mod.ts";
const { tree } = tree;

A Forest is an array of Trees.

definition: ReadonlyArray<Tree<A>>
definition: { readonly value: A; readonly forest: Forest<A>; }
definition: Tree<any>
definition: T extends Tree<infer A> ? A : never
variable tree.tree
Re-export
import { tree } from "https://deno.land/x/fun@v2.0.0-alpha.12/mod.ts";
const { tree } = tree;

type

Applicable<KindTree>

type

Flatmappable<KindTree>

type

Mappable<KindTree>

type

Traversable<KindTree>
function tree.tree
Re-export
import { tree } from "https://deno.land/x/fun@v2.0.0-alpha.12/mod.ts";
const { tree } = tree;

This is a constructor function, taking a single value A and optionally an array of Tree and returning a Tree.

Parameters

value: A
optional
forest: Forest<A> = [UNSUPPORTED]