xprepend#

t3toolbox.backend.common.xprepend(x, S)#
def xprepend(
        x,                                     # slice (if S is an array) or element (if S is a sequence)
        S: typ.Union[NDArray, typ.Sequence],   # array or sequence to prepend to
) -> typ.Union[NDArray, typ.Tuple]:            # S with x prepended

Prepend slice to array or element to sequence

Parameters:

S (Union[NDArray, Sequence])

Return type:

Union[NDArray, Tuple]