Transformed

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

source with transform applied once it resolves.

Constructors

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

Properties

Link copied to clipboard
internal val position: Int

Which map of the chain this is, #1 being the one nearest the source, for naming it in a failure.

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 transformation to this value once it resolves, so a row becomes the column the next step needs without a step of its own:

Link copied to clipboard

Spreads this map into parameters under its own keys. The name it was filed under is only a placeholder and is not bound.

Link copied to clipboard
open override fun toString(): String

The chain that will produce this value. The step is named by the index its handle was created at, which after TransactionPlan.addPlan may not be where it sits; TransactionPlan.describe says where.