Skip to content

Instantly share code, notes, and snippets.

@exerro
Created November 28, 2018 20:31
Show Gist options
  • Save exerro/033469e108b0782ae88dd004d1df8483 to your computer and use it in GitHub Desktop.
Save exerro/033469e108b0782ae88dd004d1df8483 to your computer and use it in GitHub Desktop.
Pair<A<T>, A<U>> ApplyBoth<T, U>(f: forall. Function<X, A<X>>, (a, b): Pair<T, U>) {
return (f(a), f(b)) // Yeah, I made this syntax up
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment