function getcomp(vec, comps) {
    return new GetCompExpr(vec, comps);
}
creates an expression that gets 1 component from a vector
@param vec the vector to get components of
@param comps components string