pattern-matching-on-slice-from-vector
fn normalize(self) {
loop {
match self.coefficients.as_slice() {
[0, _] => {
self.coefficients.remove(0);
}
a => break,
}
}
}
Comments
0 B
|👍
/👎
0 B
|👍
/👎