rmod

iteration_utilities.rmod(op1, op2, /)

Returns op2 % op1.

Parameters
op1, op2any type

Get the remainder of these two operands.

Returns
rmodany type

Returns op2 % op1.

Examples

Equivalent to lambda x, y: y % x:

>>> from iteration_utilities import rmod
>>> rmod(2, 5)
1