method iter.product
Product of the elements (pulls them all); panics on overflow like *.
Example:
fn main() io {
let xs: List<i32> = [1, 2, 3, 4]
print("{xs.iter().product()}")
}Output
24
pub(api) move fn product() -> i32Complexity. O(n); pulls every element.
Since. 1.0.0-beta
Returns
i32
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/iter_numbers.oxl:82