Module lambda_types::primitives

source ·
Expand description

Primitive constructs that are often useful.

Structs§

  • Takes a function and an input, and returns the function applied to said input.
  • Composes a function with another. Note that this returns a Composed, for more ergonomic point-free form.
  • The composition of two functions. See Compose.
  • Returns its type parameter, ignoring input.
  • Function that curries the first type argument with the second and the input. See Curry.
  • Takes a function that takes two arguments and the first argument to said function, and returns a function that takes the second argument and runs the function with both. See Curried.
  • Takes two values and returns the first.
  • Identity function. Returns its input.
  • Takes two values and returns the second.
  • S combinator. Takes three inputs, and applies the first to the second and third.