Skip to main content

powers

Function powers 

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

Return shift, shift * base, shift * base^2, ....

Use powers(R::one(), base) if you just want the standard powers.