Skip to content

Commit

Permalink
Update operators.md
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
  • Loading branch information
bentsherman committed Jul 11, 2024
1 parent bfd99fb commit 4d37bde
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ combining:
- `branch`
```groovy
ch | branch { /* ... */ } == [
label1: ch | filter(cond1),
label2: ch | filter(cond2),
label1: ch | filter(cond1) | map(mapper1),
label2: ch | filter(cond2) | map(mapper2),
// ...
]
```
Expand Down Expand Up @@ -145,6 +145,8 @@ combining:

Operators that could be phased out:

- `branch`: use `filter` and `map` instead

- `collectFile`: replace with stdlib function `mergeCsv`, `mergeText`
- use `groupTuple` for grouping
- use `List::sort` for sorting
Expand All @@ -153,6 +155,8 @@ Operators that could be phased out:

- `merge`: remove when there is better support for record types

- `multiMap`: use `map` instead

- `randomSample`: replace with stdlib function

- `splitCsv`, `splitFasta`, `splitFastq`, `splitJson`, `splitText`: use stdlib functions instead
Expand Down

0 comments on commit 4d37bde

Please # to comment.