Function biodivine_lib_param_bn::biodivine_std::structs::build_index_map
source · [−]pub fn build_index_map<T, F, R>(keys: &[T], transform_index: F) -> HashMap<T, R> where
F: Fn(&T, usize) -> R,
T: Clone + Hash + PartialEq + Eq,
Expand description
Build a mapping from elements of the given vector to their respective indices.
Warning: Duplicates are not detected or handled in any way, they are just overwritten.