Introduction
Generic functions let you write one function that works with many types, so you don't repeat code for each type.
When you want a function to work with different types like Int, String, or custom classes.
When you want to create reusable code that handles many data types safely.
When you want to avoid writing multiple versions of the same function for different types.