->
type alias for tuples and extractor for pattern matches.
->
type alias for tuples and extractor for pattern matches. Complementary to the Predef.->
Tuple2 constructor.
Allows to provide default value for type parameter.
Allows to provide default value for type parameter. NOTE: Be careful when you use this. Result type inference order reasoning can be very tricky.
scala> def foo[T](implicit default: T := Int, ct: ClassTag[T]) = ct.toString scala> foo Int scala> foo[String] String
For foo: useDefault[Int] wins over useProvided[Nothing,Int] For foo[String]: useProvided[String,Int] applies, useDefault does not
type-safe alternative to s"..." that requires explicit toString conversions rather than implicit