Skip to main content
Module

x/fun/boolean.ts>and

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function and
import { and } from "https://deno.land/x/fun@v2.0.0/boolean.ts";

A curried form of logical And.

Examples

Example 1

import { and } from "./boolean.ts";

const result1 = and(true)(true); // true
const result2 = and(true)(false); // false
const result3 = and(false)(false); // false

Parameters

second: boolean

Returns

(first: boolean) => boolean