You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bash has a command called seq that takes a number and returns a sequence of numbers up to and including that number, starting from 1.
You can also define the intervals using two additional (optional) arguments: seq $BEGIN $INTERVAL $END. For example, seq 0 1 3 would return the list 0 1 2 3, whereas seq 0 2 10 would return 0 2 4 6 8 10.
I think a function that performs similar to seq would be a great enhancement to sprig, as one could use it in templates via the following:
Just wanted to let you know I've started work on this feature.
So far I think it works pretty well but the code is not nice, not used to programming so heavily to interfaces. So I'll try improve before opening a PR.
Activity
[-]feature request: `seq` function[/-][+]feature request: `seq`[/+]Dean-Coakley commentedon Nov 18, 2018
Just wanted to let you know I've started work on this feature.
So far I think it works pretty well but the code is not nice, not used to programming so heavily to interfaces. So I'll try improve before opening a PR.
Hopefully creating
seq.gois correct