Transformed

class Transformed<IN, OUT>(val source: TransactionValue<IN>, val transform: (IN) -> OUT) : TransactionValue<OUT>

Result of transforming another value.

Parameters

IN

The input type of the transformation.

OUT

The output type of the transformation.

Constructors

Link copied to clipboard
constructor(source: TransactionValue<IN>, transform: (IN) -> OUT)

Properties

Link copied to clipboard
Link copied to clipboard
val transform: (IN) -> OUT

Functions

Link copied to clipboard
fun <IN, OUT> TransactionValue<IN>.map(transformation: (IN) -> OUT): TransactionValue<OUT>

Applies a transformation to a TransactionValue, creating a new, transformed value. This function is type-safe.