Generics that keep the caller’s typeadvanced
A generic function takes its types as parameters, so one function serves menu items, orders and customers while handing each caller back its own type — where any would hand back nothing the compiler can check.