ReturnValueItem

data class ReturnValueItem<E>(val op: Op, val transformation: (BackendDataItem) -> TransformationResult<E, String> = { TransformationResult.failure("No transformation given from user") }) : CanChangeTransformation<E> (source)

Represents the data item that a function call represented by op returns.

Constructors

Link copied to clipboard
constructor(op: Op, transformation: (BackendDataItem) -> TransformationResult<E, String> = { TransformationResult.failure("No transformation given from user") })

Properties

Link copied to clipboard
val op: Op
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open infix override fun <T> withTransformation(newTransformation: (BackendDataItem) -> TransformationResult<T, String>): ReturnValueItem<T>

Changes the transformation of this DataItem into the given newTransformation.