Function: constant

core.lambda.constant(a, b)
Returns:The first argument it’s given.
α → β → α

The constant combinator. Always returns the first argument it’s given.

Examples

1
2
constant(3)(2)               // => 3
constant('foo')([1])         // => 'foo'