2022-02-14 02:22:51 +00:00
|
|
|
---
|
|
|
|
title: first
|
|
|
|
layout: command
|
2022-03-04 12:10:09 +00:00
|
|
|
version: 0.59.1
|
2022-02-14 02:22:51 +00:00
|
|
|
---
|
2019-10-02 19:49:44 +00:00
|
|
|
|
2022-02-14 02:22:51 +00: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 19:49:44 +00:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
Return the first item of a list/table
|
2019-10-02 19:49:44 +00:00
|
|
|
```shell
|
2022-02-14 02:22:51 +00:00
|
|
|
> [1 2 3] | first
|
2019-10-02 19:49:44 +00:00
|
|
|
```
|
|
|
|
|
2022-02-14 02:22:51 +00:00
|
|
|
Return the first 2 items of a list/table
|
2019-10-02 19:49:44 +00:00
|
|
|
```shell
|
2022-02-14 02:22:51 +00:00
|
|
|
> [1 2 3] | first 2
|
2019-10-02 19:49:44 +00:00
|
|
|
```
|