Skip to content

Math.And

Name - Description Default Type
<input> Any valid integer(s) or a sequence of such entities supported by this operation. IntInt2Int3Int4Int8Int16Color[Any]
<output> The result of the operation, usually in the same type as the input value. IntInt2Int3Int4Int8Int16Color[Any]
Operand The operand for this operation. 0 Int&IntInt2&Int2Int3&Int3Int4&Int4Int8&Int8Int16&Int16Float&FloatFloat2&Float2Float3&Float3Float4&Float4Color&Color[Any]&[Any]

Applies the binary operation on the input value and the operand and returns the result (or a sequence of results if the input and the operand are sequences).

Examples

1
2
3
4
5
6
(int4 0 2 4 8)
(Math.And
 ;:Operand
 (int4 3 3 3 3)) (Log)

(Assert.Is (int4 0 2 0 0) true)
[info] [shards/Math/And/And.edn] (0 2 0 0)