Piecewise

fun interface Piecewise<in T, out R>

Represents piecewise-defined function.

Parameters

T

the piece key type.

R

the sub-function type.

Functions

Link copied to clipboard
abstract fun findPiece(arg: T): R?

Returns the appropriate sub-function for given piece key.

Inheritors

Link copied to clipboard

Sources

Link copied to clipboard