Skip to content

Identity

identity

identity(value: _T) -> _T

Return the input unchanged.

Source code in xdsl/utils/identity.py
6
7
8
def identity(value: _T) -> _T:
    """Return the input unchanged."""
    return value