Bro policy script: vector


I was wondering how I can use vectors in Bro policy script.

* How can I add/delete elements?
* Where can I add/delete elements (at the beginning? at the end? both)
  (i.e., can it be used as stack and/or FIFO)
* How can I iterate over the vector?
* Can I insert elements at arbitrary positions? Delete at arbitrary

(there don't seem be too many places in the default scripts were vectors
are used and it seems that most are used as consts).

I think I've also seen places where "table[count] of XYZ" is used
instead of a vector.


Gregor and I already talked about this earlier, with the conclusion
that there isn't much support for working with vectors right now.