he same way as arrays with
multiple indexes. If <code>v</code> is a vector, then <code>v[3]</code> is a
scalar real value, whereas <code>v[2:4]</code> is a vector of size 3
containing the elements <code>v[2]</code>, <code>v[3]</code>, and <code>v[4]</code>.</p>
<p>The only subtlety with vectors is in inferring the return type when
there are multiple indexes. For example, consider the following
minimal example.</p>
<pre><code>vector[5] v[3];
int idxs[7];
...
vector[7] u;
u = v[2, idxs];

real w[7];
w = v[idx