remove bimap (no longer needed since it is in lib-laddertypes now)

This commit is contained in:
Michael Sippel 2023-11-26 22:16:49 +01:00
parent ea38b0f9b0
commit b1c17da75f
Signed by: senvas
GPG key ID: F96CF119C34B64A6
2 changed files with 0 additions and 27 deletions

View file

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

View file

@ -1,5 +1,2 @@
pub mod bimap;
pub mod modulo; pub mod modulo;
pub use modulo::modulo; pub use modulo::modulo;
pub use bimap::Bimap;