Created
June 25, 2019 08:15
-
-
Save zarinfam/372e62a5bf4aa394449adb4cc3039ce5 to your computer and use it in GitHub Desktop.
Created with Copy to Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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