Task: Loop Over Bash Arrays Printing Both Index and Value
Task: Loop Over Bash Arrays Printing Both Index and Value: a task in Terminal-Lego-15k (Harbor dataset). In Bash, arrays can be sparse (have non-consecutive indices). When iterating over such arrays, you need a way to access both the index and the value of each element.
Part of PrimeIntellect/Terminal-Lego-15k.