In Python, if I have a list I can find the index. This allows me to keep running IDs as I add things.
> things = []
> things.append("spinach")
> things.append("carrots")
> things.index("carrots")
1
So give a vegetable (or tuber) I can find an ID for it. Given an ID, I can find a vegetable (or tuber) to match.
What is the equivalent pattern in Chapel for an unknown number of objects and being able to reference from the name or the id?