Generics

January 14, 2020 ยท View on GitHub

Generics allow one to define an algorithm or data structure that uses types that can be specified later. This allows for these algorithms or data structures to be written once, reducing duplication.