seq
for generators> seq {flags} ...rest
...rest
: sequence valuesinput | output |
---|---|
nothing | list<number> |
sequence 1 to 10
>seq110
╭───┬────╮
│0│1│
│1│2│
│2│3│
│3│4│
│4│5│
│5│6│
│6│7│
│7│8│
│8│9│
│9│10│
╰───┴────╯
sequence 1.0 to 2.0 by 0.1s
>seq1.00.12.0
╭────┬──────╮
│0│1.00│
│1│1.10│
│2│1.20│
│3│1.30│
│4│1.40│
│5│1.50│
│6│1.60│
│7│1.70│
│8│1.80│
│9│1.90│
│10│2.00│
╰────┴──────╯
sequence 1 to 5, then convert to a string with a pipe separator
>seq15|str join'|'
name | type | usage |
---|---|---|
seq char |
Builtin | Print a sequence of ASCII characters. |
seq date |
Builtin | Print sequences of dates. |
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/seq.html