fn initialize<'a>(
    id: usize, 
    obj: Object,
    float: bool,
    locals: &mut HashMap<usize, Object>, 
    globals: &mut HashMap<usize, Object>,
    _identifiers: &HashMap<usize, String>
) {
    let extra_float = if float {
        if locals.contains_key(&id) {
            locals.remove(&id);
        }
        true
    }
    else {
        globals.contains_key(&id)
    };
    if extra_float {
        globals.insert(id, obj);
    }
    else {
        locals.insert(id, obj);
    }
}
/// Adds an object to either the locals or the globals.
Adds an object to either the locals or the globals.
Adds an object to either the locals or the globals .
fn initialize<'a>(
    id: usize, 
    obj: Object,
    float: bool,
    locals: &mut HashMap<usize, Object>, 
    globals: &mut HashMap<usize, Object>,
    _identifiers: &HashMap<usize, String>
) {
    let extra_float = if float {
        if locals.contains_key(&id) {
            locals.remove(&id);
        }
        true
    }
    else {
        globals.contains_key(&id)
    };
    if extra_float {
        globals.insert(id, obj);
    }
    else {
        locals.insert(id, obj);
    }
}
fn initialize < ' a > ( id : usize , obj : Object , float : bool , locals : & mut HashMap < usize , Object > , globals : & mut HashMap < usize , Object > , _identifiers : & HashMap < usize , String > ) { let extra_float = if float { if locals . contains_key ( & id ) { locals . remove ( & id ) ; } true } else { globals . contains_key ( & id ) } ; if extra_float { globals . insert ( id , obj ) ; } else { locals . insert ( id , obj ) ; } }
Adds an object to either the locals or the globals.
Adds an object to either the locals or the globals .
id
usize
obj
Object
float
bool
locals
&mut HashMap<usize, Object>
globals
&mut HashMap<usize, Object>
_identifiers
&HashMap<usize, String>
id
usize
obj
Object
float
bool
locals
&mut HashMap<usize, Object>
globals
&mut HashMap<usize, Object>
_identifiers
&HashMap<usize, String>