SLIDE 1
Scala Generics
Type Parameterization
1 / 16
Scala Generics Type Parameterization 1 / 16 Scala Generics - - PowerPoint PPT Presentation
Scala Generics Type Parameterization 1 / 16 Scala Generics Consider: 1 class Pair[T, S](val first: T, val second: S) Pair is not a type Pair[T, S] is a generic type, or type constructor Pair[Int, String] is a type because arguments
1 / 16
2 / 16
3 / 16
4 / 16
5 / 16
6 / 16
7 / 16
8 / 16
9 / 16
10 / 16
11 / 16
12 / 16
13 / 16
14 / 16
15 / 16
16 / 16