Function constant
Source pub fn constant<'a, A: 'a + Clone, B: Clone>(a: A) -> ArcFn<'a, 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
);