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
Chopsticks
function:When you declare an index, you declare an
id
such asph
orcs
. You can pass an index by its integer value using theid
followed by its number, likecs(1)
.So, if you want to iterate, you can use the integer value assigned to its id.