rsub

iteration_utilities.rsub(op1, op2, /)

Returns op2 - op1.

Parameters
op1, op2any type

The values to be subtracted.

Returns
rsubany type

Returns op2 - op1.

Examples

Equivalent to lambda x, y: y - x:

>>> from iteration_utilities import rsub
>>> rsub(2, 5)
3