Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Danilo-Araujo-Silva/7fd82b26ab8de957c94424e07eac79fb to your computer and use it in GitHub Desktop.
Save Danilo-Araujo-Silva/7fd82b26ab8de957c94424e07eac79fb to your computer and use it in GitHub Desktop.
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