Function identity

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

Returns its input.

forall a. a -> a

Examples

use fp_library::{functions::identity};
assert_eq!(identity(()), ());