src/container.c
// Get an item from a vector. If no such item exists, raise an error.
Get an item from a vector. If no such item exists, raise an error.
Get an item from a vector . If no such item exists raise an error .
void *vec_at(Vector *vec, int index) {
    if (vec->len <= index) {
        error("out of range");
    }
    return vec->data[index];
}
void * vec_at ( Vector * vec , int index ) { if ( vec -> len <= index ) { error ( " " ) ; } return vec -> data [ index ] ; }
Get an item from a vector.
Get an item from a vector .