2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: first
|
|
|
|
layout: command
|
2022-03-04 13:10:09 +01:00
|
|
|
version: 0.59.1
|
2022-02-14 03:22:51 +01:00
|
|
|
---
|
2019-10-02 21:49:44 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Show only the first number of rows.
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```> first (rows)```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `rows`: starting from the front, the number of rows to return
|
2019-10-02 21:49:44 +02:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Return the first item of a list/table
|
2019-10-02 21:49:44 +02:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> [1 2 3] | first
|
2019-10-02 21:49:44 +02:00
|
|
|
```
|
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Return the first 2 items of a list/table
|
2019-10-02 21:49:44 +02:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> [1 2 3] | first 2
|
2019-10-02 21:49:44 +02:00
|
|
|
```
|