Introduction
We use associate to quickly turn a list into a map. It helps organize data by linking keys to values.
When you have a list of names and want to create a map of name to length.
When you want to convert a list of objects into a map using one property as the key.
When you need to group data by a unique identifier from a list.
When you want to quickly look up values by keys instead of searching a list.