Created
September 14, 2017 22:37
-
-
Save Vistritium/e5df70f220d2d706b5e3ef6af922a3b1 to your computer and use it in GitHub Desktop.
This file contains 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
case class Foo(a: Int, b: String, c: Float) | |
object Main { | |
val foo = Foo(a = 1, c = 3, b = "lol") | |
val str = Foo.unapply(foo) match { | |
case Some((a, b, c)) => s"$a $b $c" | |
} | |
println(str) | |
def main(args: Array[String]): Unit = {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment