identity

Function identity 

Source
pub fn identity<A>(a: A) -> A
Expand description

Returns its input.

§Type Signature

forall a. a -> a

§Parameters

  • a: A value.

§Returns

The same value.

§Examples

use fp_library::functions::identity;

assert_eq!(
    identity(()),
    ()
);