Math functions
add
Commentary
added in 0.0.17
Generates the sum of args
. You can also use this function through an infix math
expression.
Examples
Adding numbers
{
"_gen": "add",
"args": [
1,
2,
3
]
}
[
6
]
Specification
JSON schema
{
"type": "object",
"properties": {
"args": {
"oneOf": [
{
"type": "array",
"minItems": 1
},
{
"type": "object",
"properties": {
"_gen": {
"type": "string"
}
},
"required": [
"_gen"
]
}
]
}
},
"required": [
"args"
]
}