Hi,

I wonder if there is an existing way to store floats/ints with many
repetitions in some container (not sure about terminology).
For example, I might have data like A=[1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 1, 2]
and i would like to store only B=[1, 2, 3, 1, 2] but from user
perspective it behaves like container A. I know I can use dictionary but as
far I understand it will store internally indices of the chosen elements so
it makes sense more for binary data or structures.

-- 
Best regards,
Kirill Lykov

Reply via email to