doc / ch.tutteli.atrium.domain.builders.creating.changers / SubjectChangerBuilder / TransformationStep / withTransformation

withTransformation

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

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