Takes a list of elements and creates a new list containing 1 entry per unique element value containing the indexes of which original elements it occurred in.
invert_indexes(x)
Arguments
x: list of elements to invert and calculate index from (see details).
Details
This functions purpose is best illustrated by an example: