Require block params (#4505)

* Require block params

* Improve errors
This commit is contained in:
JT
2022-02-17 06:40:24 -05:00
committed by GitHub
parent f169a9be3b
commit 6e733f49bc
27 changed files with 149 additions and 102 deletions

View File

@ -19,6 +19,6 @@ Run a block on each element of input
Multiplies elements in list
```shell
> [1 2 3] | each { 2 * $it }
> [1 2 3] | each { |it| 2 * $it }
```

View File

@ -19,6 +19,6 @@ Run a block on each element of input in parallel
Multiplies elements in list
```shell
> [1 2 3] | par-each { 2 * $it }
> [1 2 3] | par-each { |it| 2 * $it }
```