How to create an indexed, easily iterable, int Colset?
I need to pass ints by index to a transition function, and I'm thinking about something with an index such as
colset PH = index ph with 1..n
How to create an indexed, easily iterable, int Colset?
I need to pass ints by index to a transition function, and I'm thinking about something with an index such as
colset PH = index ph with 1..n
Copyright © 2021 Jogjafile Inc.
You have an example of how to use the index with a function in the following manual (Page 8)
Look at the declared
Chopsticksfunction:When you declare an index, you declare an
idsuch asphorcs. You can pass an index by its integer value using theidfollowed by its number, likecs(1).So, if you want to iterate, you can use the integer value assigned to its id.