/// Return a vector of length `len` containing the consecutive powers of element.
Return a vector of length `len` containing the consecutive powers of element.
Return a vector of length ` len ` containing the consecutive powers of element .
pub(crate) fn powers<F: Field>(element: F, len: usize) -> Vec<F> {
    let mut powers = vec![F::one(); len];
    for i in 1..len {
        powers[i] = element * powers[i - 1];
    }
    powers
}
pub ( crate ) fn powers < F : Field > ( element : F , len : usize ) -> Vec < F > { let mut powers = vec ! [ F one ( ) len ] ; for i in 1 .. len { powers [ i ] = element * powers [ i - 1 ] ; } powers }
Return a vector of length `len` containing the consecutive powers of element.
Return a vector of length ` len ` containing the consecutive powers of element .
element
F
<not_specific>
len
usize
<not_specific>