I'm having trouble figuring out how to create this data structure in an ash script.
I would like to have a list of items, with each item referring to an set of records. That is, I would essentially like something along the lines of
[item 1] => [record 1, record 2, record 3]
[item 2] => [record 4]
There is not an exact number of records that an item would refer to, so I'm not sure how to create this. The documentation mentions that there are arrays available, would this be the right way to go? If so, it looks like I'd have to declare each one at an outlandish size, so that everything would fit in it. The only other option I can think of is creating doubly-linked lists, but I'd rather not try to do that here if I don't have to.
I would like to have a list of items, with each item referring to an set of records. That is, I would essentially like something along the lines of
[item 1] => [record 1, record 2, record 3]
[item 2] => [record 4]
There is not an exact number of records that an item would refer to, so I'm not sure how to create this. The documentation mentions that there are arrays available, would this be the right way to go? If so, it looks like I'd have to declare each one at an outlandish size, so that everything would fit in it. The only other option I can think of is creating doubly-linked lists, but I'd rather not try to do that here if I don't have to.
