Skip to main content

trim_to_pct

Function trim_to_pct 

Source
fn trim_to_pct(segment: &Segment, pct: f64) -> Segment
Expand description

segment[:max(1, int(len(segment) * pct / 100.0))].