mirror of
https://github.com/nushell/nushell.git
synced 2024-12-01 21:03:58 +01:00
28 lines
429 B
Markdown
28 lines
429 B
Markdown
---
|
|
title: str collect
|
|
layout: command
|
|
version: 0.59.1
|
|
---
|
|
|
|
creates a string from the input, optionally using a separator
|
|
|
|
## Signature
|
|
|
|
```> str collect (separator)```
|
|
|
|
## Parameters
|
|
|
|
- `separator`: optional separator to use when creating string
|
|
|
|
## Examples
|
|
|
|
Create a string from input
|
|
```shell
|
|
> ['nu', 'shell'] | str collect
|
|
```
|
|
|
|
Create a string from input with a separator
|
|
```shell
|
|
> ['nu', 'shell'] | str collect '-'
|
|
```
|