Skip to content

Instantly share code, notes, and snippets.

@zarinfam
Created June 25, 2019 08:15
Show Gist options
  • Save zarinfam/372e62a5bf4aa394449adb4cc3039ce5 to your computer and use it in GitHub Desktop.
Save zarinfam/372e62a5bf4aa394449adb4cc3039ce5 to your computer and use it in GitHub Desktop.
Created with Copy to Gist
interface Show<A> {
String show(A a);
static <X, Y> Show<Tuple2<X, Y>> showTuple() {
return t -> "{" + t._1() + ", " + t._2() + "}";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment