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