pos/index of a value for any kind of collection