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")
})
Functions
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.