"""
Given a list of values and a function computing a key for each value, the function produces a function that finds a value
effeciently for the given key.
"""
Given a list of values and a function computing a key for each value, the function produces a function that finds a value
effeciently for the given key.