Merges this styles with another.
BasicTextFieldInputTransformationChainingSample
fun BasicTextFieldInputTransformationChainingSample() {
val removeFirstEFilter = InputTransformation {
val index = asCharSequence().indexOf('e')
if (index != -1) {
replace(index, index + 1, "")
}
}
val printECountFilter = InputTransformation {
println("found ${asCharSequence().count { it == 'e' }} 'e's in the string")
}
// Returns a filter that always prints 0 e's.
removeFirstEFilter.then(printECountFilter)
// Returns a filter that prints the number of e's before the first one is removed.
printECountFilter.then(removeFirstEFilter)
}