ArgumentItem
data class ArgumentItem<E>(val op: Op, val index: Int, val transformation: (BackendDataItem) -> TransformationResult<E, String> = {
TransformationResult.failure("No transformation given from user")
}) : CanChangeTransformation<E> (source)
Represents the argument at index given to the function call represented by op.
The index starts counting from 0.
Constructors
Link copied to clipboard
constructor(op: Op, index: Int, 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>): ArgumentItem<T>
Changes the transformation of this DataItem into the given newTransformation.