Piecewise

fun interface Piecewise<in T, out R>(source)

Represents piecewise-defined function.

Parameters

T

the piece key type.

R

the sub-function type.

Inheritors

Functions

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

Returns the appropriate sub-function for given piece key.