doc / ch.tutteli.atrium.logic.creating.transformers / SubjectChangerBuilder / TransformationStep / withTransformation

withTransformation

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

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