Scalar functions
sequentialInteger
Commentary
added in 0.0.5
stateful function
Generates integers sequentially, starting by default from 0.
Examples
Generating sequential integers
{
"_gen": "sequentialInteger"
}
[
0,
1,
2,
3,
4
]
Setting the starting value
{
"_gen": "sequentialInteger",
"startingFrom": 42
}
[
42,
43,
44,
45,
46
]
Specification
JSON schema
{
"type": "object",
"properties": {
"startingFrom": {
"type": "integer"
}
}
}