Skip to content

Math.LShift

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
(int 4)
(Math.LShift 2) (Log)

(Assert.Is 16 true)
[info] [shards/Math/LShift/LShift.edn] 16