rmod

iteration_utilities.rmod(op1, op2, /)

Returns op2 % op1.

Parameters:

op1, op2 : any type

Get the remainder of these two operands.

Returns:

rmod : any type

Returns op2 % op1.

Examples

Equivalent to lambda x, y: y % x:

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