Lecture

Subtyping and Generics: Variance and Covariance

Description

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
About this result
This page is automatically generated and may contain information that is not correct, complete, up-to-date, or relevant to your search query. The same applies to every other page on this website. Please make sure to verify the information with EPFL's official sources.
Related lectures (30)
Introduction to LabVIEW
Covers the basics of LabVIEW, including its importance, history, functions, and tools available.
Python Complement: Numpy, Scipy, Matplotlib
Covers advanced Python topics like numpy operations, scipy linear algebra, and matplotlib for creating figures.
Variance: Definition and Typing Rules
Explains variance relationships, typing rules for functions, and variance checks in Scala.
Meromorphic Functions & Differentials
Explores meromorphic functions, poles, residues, orders, divisors, and the Riemann-Roch theorem.
Arrays: Basics and UsageMOOC: Image Processing and Analysis for Life Scientists
Covers the basics of arrays in ImageJ, including defining, declaring, and retrieving values, with an emphasis on using meaningful names.
Show more

Graph Chatbot

Chat with Graph Search

Ask any question about EPFL courses, lectures, exercises, research, news, etc. or try the example questions below.

DISCLAIMER: The Graph Chatbot is not programmed to provide explicit or categorical answers to your questions. Rather, it transforms your questions into API requests that are distributed across the various IT services officially administered by EPFL. Its purpose is solely to collect and recommend relevant references to content that you can explore to help you answer your questions.