effect-io-ai

Package: effect
Module: Function

Function.SK

The SK combinator, also known as the “S-K combinator” or “S-combinator”, is a fundamental combinator in the lambda calculus and the SKI combinator calculus.

This function is useful for discarding the first argument passed to it and returning the second argument.

Example

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

assert.deepStrictEqual(SK(0, "hello"), "hello")

Signature

declare const SK: <A, B>(_: A, b: B) => B

Source

Since v2.0.0