Hello,
I have an array of objects that has a type attribute of enum Animals. the type can be like this [Cat, Dog, Cat, Cat, Dog, Mouse, Dog]
I would like to display to my view an output of an image for every object along with the type and its number.
My problem is I cannot get the number from the array. The output should look like :
[Cat1, Dog1, Cat2, Cat3, Dog2, Mouse1, Dog3]
Any ideas how can i achieve this?