doc / ch.tutteli.atrium.logic.creating.transformers.impl.subjectchanger / TransformationStepImpl / withTransformation

withTransformation

fun <R> withTransformation(transformation: (T) -> Option<R>): SubjectChangerBuilder.FailureHandlerStep<T, R> (source)

Overrides TransformationStep.withTransformation

Defines the new subject, most likely based on the current subject (but does not need to be).