method iter.product
Product of the elements (pulls them all); panics on overflow like *.
Example:
fn main() io {
let xs: List<i8> = [1, 2, 3, 4]
print("{xs.iter().product()}")
}Вывод
24
pub(api) move fn product() -> i8Сложность. O(n); pulls every element.
С версии. 1.0.0-beta
Возвращает
i8
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/iter_numbers.oxl:168