nushell/docs/commands/prepend.md

33 lines
379 B
Markdown
Raw Normal View History

---
title: prepend
layout: command
version: 0.59.1
---
Prepend a row to the table.
2019-11-15 14:53:58 +00:00
## Signature
```> prepend (row)```
2019-11-15 14:53:58 +00:00
## Parameters
- `row`: the row to prepend
2019-11-15 14:53:58 +00:00
## Examples
2019-11-15 14:53:58 +00:00
Prepend one Int item
2019-11-15 14:53:58 +00:00
```shell
> [1,2,3,4] | prepend 0
2019-11-15 14:53:58 +00:00
```
Prepend two Int items
2019-11-15 14:53:58 +00:00
```shell
> [2,3,4] | prepend [0,1]
2019-11-15 14:53:58 +00:00
```
Prepend Ints and Strings
2019-11-15 14:53:58 +00:00
```shell
> [2,nu,4,shell] | prepend [0,1,rocks]
2019-11-15 14:53:58 +00:00
```