Skip to main content

number_list

Function number_list 

Source
fn number_list(nums: &[usize]) -> String
Expand description

“1–3”, “2, 4 and 5”, “1 and 2”: runs of three or more consecutive numbers collapse to a range.