mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

I ran into wanting to iterate over just the values of a vector and wondering whether that could just work. This adds support for the following, where v will be value of vec[i]. local vec = vector("zero", "one", "two"); for ( i, v in vec ) print i, v;
13 lines
193 B
Text
13 lines
193 B
Text
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
|
0, zero
|
|
1, one
|
|
2, two
|
|
4, four
|
|
0, zero
|
|
1, one
|
|
2, two
|
|
4, four
|
|
zero
|
|
one
|
|
two
|
|
four
|