rpow

iteration_utilities.rpow(op1, op2, /)

Returns op2 ** op1.

Parameters
op1, op2any type

The values for the operation.

Returns
rpowany type

Returns op2 ** op1.

Examples

Equivalent to lambda x, y: y ** x:

>>> from iteration_utilities import rpow
>>> rpow(3, 2)
8