Skip to main content

format

Function format 

Source
pub fn format(values: &[u64]) -> String
Expand description

Format a slice of integers into a compact range string, e.g. [1, 3, 4, 5, 7]"1,3-5,7". Values are sorted and de-duplicated first.