2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: prepend
|
|
|
|
layout: command
|
2022-03-04 13:10:09 +01:00
|
|
|
version: 0.59.1
|
2022-02-14 03:22:51 +01:00
|
|
|
---
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Prepend a row to the table.
|
2019-11-15 15:53:58 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Signature
|
2020-06-23 20:21:47 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
```> prepend (row)```
|
2019-11-15 15:53:58 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `row`: the row to prepend
|
2019-11-15 15:53:58 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Examples
|
2019-11-15 15:53:58 +01:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Prepend one Int item
|
2019-11-15 15:53:58 +01:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> [1,2,3,4] | prepend 0
|
2019-11-15 15:53:58 +01:00
|
|
|
```
|
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Prepend two Int items
|
2019-11-15 15:53:58 +01:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> [2,3,4] | prepend [0,1]
|
2019-11-15 15:53:58 +01:00
|
|
|
```
|
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Prepend Ints and Strings
|
2019-11-15 15:53:58 +01:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> [2,nu,4,shell] | prepend [0,1,rocks]
|
2019-11-15 15:53:58 +01:00
|
|
|
```
|