parametric polymorphism does: a function works for any type T without knowing what T is

Generics: A function template works for any type T without knowing T's specific type

Image: Thomas Kitchin, Public domain, via Wikimedia Commons

parametric polymorphism does: a function works for any type T without knowing what T is

Generics: A function template works for any type T without knowing T's specific type

Related concepts

One email a day: 5 concepts + the 5 stories that matter →

Swipe through 100 ML concepts daily

Open TickerNews