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

Properties

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

Functions

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
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.