Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
infix fun <A, B, C> ((A) -> B).andThen(g: (B) -> C): (A) -> C = { a: A -> g(this(a)) }
val c = a andThen b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment