Are you an EPFL student looking for a semester project?
Work with us on data science and visualisation projects, and deploy your project as an app on top of Graph Search.
This lecture covers the concepts of subtyping and generics, focusing on their interactions, type bounds, and variance. It explores the relationships between different types, such as IntSet, Empty, and NonEmpty, and how to define precise type bounds. The discussion extends to covariance, arrays, the Liskov Substitution Principle, and the definition of variance in Scala. The lecture also delves into the variance of function types, variance checks, and the implementation of covariant lists. Additionally, it addresses other collections like Vectors, arrays, strings, ranges, and various sequence operations. The session concludes with examples of combinatorial search, for-expressions, and prime number testing.
This video is available exclusively on Mediaspace for a restricted audience. Please log in to MediaSpace to access it if you have the necessary permissions.
Watch on Mediaspace