identity<A
>(x
): A
Mathematic identity function. A function that always returns the value
that was used as its argument, unchanged.
Type Parameters
• A
Parameters
A
The value to return.
Returns
A
I combinator
λa.a
identity :: a → a
pure function
Example