remove bimap (no longer needed since it is in lib-laddertypes now)
This commit is contained in:
parent
ea38b0f9b0
commit
b1c17da75f
2 changed files with 0 additions and 27 deletions
|
@ -1,24 +0,0 @@
|
|||
use std::{collections::HashMap, hash::Hash};
|
||||
|
||||
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>
|
||||
|
||||
pub struct Bimap<V: Eq + Hash, Λ: Eq + Hash> {
|
||||
pub mλ: HashMap<V, Λ>,
|
||||
pub my: HashMap<Λ, V>,
|
||||
}
|
||||
|
||||
impl<V: Eq + Hash + Clone, Λ: Eq + Hash + Clone> Bimap<V, Λ> {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>
|
|
@ -1,5 +1,2 @@
|
|||
pub mod bimap;
|
||||
pub mod modulo;
|
||||
|
||||
pub use modulo::modulo;
|
||||
pub use bimap::Bimap;
|
||||
|
|
Loading…
Reference in a new issue