seq char

For generators.

Print a sequence of ASCII characters.

Command Type

built-in

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 char a e
╭───┬───╮
│ 0 │ a │
│ 1 │ b │
│ 2 │ c │
│ 3 │ d │
│ 4 │ e │
╰───┴───╯

Sequence a to e, and join the characters with a pipe

> seq char a e | str join '|'

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.