nushell/docs/commands/prepend.md

379 B

title layout version
prepend command 0.59.1

Prepend a row to the table.

Signature

> prepend (row)

Parameters

  • row: the row to prepend

Examples

Prepend one Int item

> [1,2,3,4] | prepend 0

Prepend two Int items

> [2,3,4] | prepend [0,1]

Prepend Ints and Strings

> [2,nu,4,shell] | prepend [0,1,rocks]