filter_unique_by_atom_j

Function filter_unique_by_atom_j 

Source
pub fn filter_unique_by_atom_j(gaps: Vec<Gap>) -> Vec<Gap>
Expand description

Filters a vector of Gap elements, retaining only the unique elements based on the atom_j value.

This function removes duplicate Gap elements where the atom_j value is the same across multiple entries, keeping only the first occurrence of each unique atom_j. This is useful when you only need to retain one Gap entry for each unique atom_j regardless of the atom_i or other fields.