aspis.common.identity

aspis.common.identity(x)[source]

The identity function.

Parameters:

x (T) – The value to be returned.

Returns:

The value passed as an argument.

Return type:

T

Example

>>> identity(5)
5
>>> identity([1, 2, 3])
[1, 2, 3]