use std::{ collections::HashMap, hash::Hash }; //<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>> pub struct Bimap { pub mλ: HashMap::, pub my: HashMap::<Λ, V> } impl Bimap { pub fn new() -> Self { Bimap { mλ: HashMap::new(), my: HashMap::new() } } pub fn insert(&mut self, y: V, λ: Λ) { self.mλ.insert(y.clone(), λ.clone()); self.my.insert(λ, y); } } //<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>