map_algorithms/index_mapping library

Functions

indexMapping<T>(List<T> list) Map<T, List<int>>
Index Mapping for Elements: returns a map from element to list of indices where it appears.