Record<K, T> builds a dictionary type where each key K maps to a value T. Use it to create fast lookups from arrays. When keys repeat, decide which value wins; here the later item should overwrite the earlier one.
// Example: Record<string, number> for a price table
Build a price table from a list of items.