Power

inline fun <Base, Exponent, Result> Power(crossinline block: (base: Base, exponent: Exponent) -> Result): Power<Base, Exponent, Result>(source)

Creates a Power instance from a lambda.

Return

A new Power instance.

Parameters

block

The function implementing exponentiation.

Type Parameters

Base

The type of the base.

Exponent

The type of the exponent.

Result

The type of the result.