Module: lib/index

lib/index

Restricts the arity of variadic functions.

Source:

Methods

<static> binary()

(α₁, α₂, ..., αₙ → β) → α₁ → α₂ → β

Restricts a variadic function to a binary one.

Source:

<static> nullary()

(α₁, α₂, ..., αₙ → β) → Void → β

Restricts a variadic function to a nullary one.

Source:

<static> ternary()

(α₁, α₂, α₃, ..., αₙ → β) → α₁ → α₂ → α₃ → β

Restricts a variadic function to a ternary one.

Source:

<static> unary()

(α₁, α₂, ..., αₙ → β) → α₁ → β

Restricts a variadic function to an unary one.

Source: