Function constant
Source pub fn constant<A, B>(a: A) -> impl Fn(B) -> A
Expand description
Returns its first argument.
§Type Signature
forall a b. a -> b -> a
§Parameters
a
: A value.
b
: Some other value.
§Returns
The first value.
§Examples
use fp_library::{functions::constant};
assert_eq!(constant(true)(false), true);