def divmod_by(y):
    """divmod_by(y)(x) = divmod(x, y)

    Be careful with this because division is not commutative.

    You may be interested in func.flip(divmod_by) to reverse the arguments.

    >>> divmod_by(2)(4)
    (2, 0)
    >>> divmod_by(2)(5)
    (2, 1)
    >>> from .func import flip
    >>> flip(divmod_by)(5)(2)
    (2, 1)
    """
    return lambda x: divmod(x, y)
