O'Reilly logo
  • Daniel Gordon thinks this is interesting:

scala> val Decimal(sign, integerpart, decimalpart) = "-1.23"   sign: String = - integerpart: String = 1 decimalpart: String = .23

From

Cover of Programming in Scala, Third Edition

Note

So how would this be used in a case match like a case class?