MathLib.and()

MathLib.and() calculates the logical conjunction of the input \[ \text{MathLib.and}(x_1, \dots, x_n) = \bigwedge_{i=1}^n x_i \]

Specification

MathLib.and accepts either a list of arguments or one array.
  1. MathLib.and() = true
  2. MathLib.and(true) = true
  3. MathLib.and(false) = false
  4. MathLib.and$(x_1, \dots, x_n) = \bigwedge_{i=1}^n x_i$

Tests

Categories: n-ary Function