A faster (integer-only) version of the seq
command.
This only uses builtin commands, which reduces the ~2ms overhead of forking and exec'ing an external process.
- The starting index.
- The ending index.
Option | Type | Description |
---|---|---|
--step |
(integer) | The step size (default 1). |
for i in (promptfessional util seq 1 10 --step=2
echo $i
end