Skip to main content

powers

Function powers 

Source
pub fn powers<R: Ring>(base: &R, len: usize) -> impl Iterator<Item = R> + '_
Expand description

Return [1, base, base^2, ..., base^(len - 1)].