W3cubDocs

/Nushell

seq char for generators

Print a sequence of ASCII characters.

Signature

> seq char {flags} (start) (end)

Parameters

  • start: start of character sequence (inclusive)
  • end: end of character sequence (inclusive)

Input/output types:

input output
nothing list<string>

Examples

sequence a to e

>seq charae
╭───┬───╮
0a
1b
2c
3d
4e
╰───┴───╯

sequence a to e, and put the characters in a pipe-separated string

>seq charae|str join'|'

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/seq_char.html