Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fun/mod.ts>nil.nil

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

Properties

readonly
kind: Nil<Out<this, 0>>
type alias nil.nil
Re-export
import { type nil } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { nil } = nil;
definition: A | undefined | null
variable nil.nil
Re-export
import { nil } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { nil } = nil;

type

Applicable<KindNil>

type

Mappable<KindNil>

type

Filterable<KindNil>

type

Flatmappable<KindNil>

type

Foldable<KindNil>

type

Traversable<KindNil>

type

Wrappable<KindNil>
function nil.nil
Re-export
import { nil } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { nil } = nil;

Type Parameters

A
B extends A

Parameters

refinement: Refinement<A, B>

Returns

(a: A) => Nil<B>

Parameters

predicate: Predicate<A>

Returns

(ta: Nil<A>) => Nil<A>

Type Parameters

A
B extends A

Parameters

refinement: Refinement<A, B>

Returns

(ta: Nil<A>) => Nil<B>

Parameters

predicate: Predicate<A>

Returns

(ta: Nil<A>) => Nil<A>

Type Parameters

A
B extends A

Parameters

refinement: Refinement<A, B>

Returns

(ua: Nil<A>) => Pair<Nil<B>, Nil<A>>

Parameters

predicate: Predicate<A>

Returns

(ua: Nil<A>) => Pair<Nil<A>, Nil<A>>