::std::ops::

Function reduce_or

pub extern fn reduce_or<#uint N>(x: [bool; N]) -> bool
Expand

Reduces an array of bool into a single value by performing an OR operation on them.

This operation is equivalent to the Verilog OR reduction operator |.

Examples

assert [true, true, true].reduce_or() == true;
assert [false, false, false].reduce_or() == false;
assert [false, true, true].reduce_or() == true;