pub fn new(fields: Vec<(Name, Box<Ty>)>) -> RecordTy {
        let lookup = fields
            .iter()
            .enumerate()
            .map(|(i, &(n, _))| (n, i))
            .collect();
        RecordTy {
            fields: fields,
            lookup: lookup,
        }
    }
/// Create a new array type.
Create a new array type.
Create a new array type .
pub fn new(fields: Vec<(Name, Box<Ty>)>) -> RecordTy {
        let lookup = fields
            .iter()
            .enumerate()
            .map(|(i, &(n, _))| (n, i))
            .collect();
        RecordTy {
            fields: fields,
            lookup: lookup,
        }
    }
pub fn new ( fields : Vec < ( Name , Box < Ty > ) > ) -> RecordTy { let lookup = fields . iter ( ) . enumerate ( ) . map ( | ( i , & ( n , _ ) ) | ( n , i ) ) . collect ( ) ; RecordTy { fields : fields , lookup : lookup , } }
Create a new array type.
Create a new array type .
fields
Vec<(Name, Box<Ty>)>
fields
Vec<(Name, Box<Ty>)>