rsub

iteration_utilities.rsub(op1, op2, /)

Returns op2 - op1.

Parameters:
op1, op2 : any type

The values to be subtracted.

Returns:
rsub : any type

Returns op2 - op1.

Examples

Equivalent to lambda x, y: y - x:

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