3 ms·
Is this more readable? def size[T : Union[Int, String]#Value](t : T) = t match { case i : Int => i case s : String => s.length }
by jorgeortiz85 15y ago
Is this more readable?
def size[T : Union[Int, String]#Value](t : T) = t match {
case i : Int => i
case s : String => s.length
}