Operations on Tuples
Tuple t = makeTuple(rel,rec)
- convert record to tuple data structure (may be identity mapping)
Typ getTypField(Tuple t, int fno)
- extract the
fno 'th field from a Tuple as a value of type Typ
E.g. getIntField(t,1) , getStrField(t,2)
void setTypField(Tuple t, int fno, Typ val)
- set the value of the
fno 'th field of a Tuple to val
E.g. setIntField(t,1,42) , setStrField(t,2,"abc")
|