identity<T> function
- @useResult
- T x
The Identity function.
A function that always returns the value that was used as its argument,
unchanged. That is, when ƒ is the identity function, the equality
ƒ(A) = A
is true
for all values of A
to which ƒ can be applied.
Implementation
@useResult
T identity<T>(T x) => x;