in src/main/kotlin/org/jetbrains/grammarkit/utils.kt [25:28]
fun <V> andThen(after: Function<in R, out V>): TriFunction<A, B, C, V> {
Objects.requireNonNull(after)
return TriFunction { a: A, b: B, c: C -> after.apply(apply(a, b, c)) }
}