Hyperlinkv0.8.0-beta.28

Function

Function.constFalseconsteffect/Function.ts:366
(): boolean

Returns false when called.

When to use

Use when you need a thunk that returns false on every invocation.

Example (Returning false from a thunk)

import { Function } from "effect"
import * as assert from "node:assert"

assert.deepStrictEqual(Function.constFalse(), false)
constants
export const constFalse: LazyArg<boolean> = constant(false)
Referenced by 5 symbols