Skip to content

Math.Inc

Name - Description Default Type
<input> Any valid integer(s), floating point number(s), or a sequence of such entities supported by this operation. Any
<output> The result of the operation, usually in the same type as the input value. Any
Value The value to apply the operation to. None &Int&Int2&Int3&Int4&Int8&Int16&Float&Float2&Float3&Float4&Color&[Any]

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

Details

This shard increments the :Value parameter by 1.

The :Value parameter should be a variable that holds a valid numeric value.

See also

Examples

1
2
3
4
5
6
 10.0 >= .mutable
(Math.Inc
 ;:Value
 .mutable)
.mutable (Log)
(Assert.Is 11.0 true)
[info] [shards/Math/Inc/Inc.edn] 11