Skip to content

Commit

Permalink
Fixed pure-Python example in flatten docs (#824)
Browse files Browse the repository at this point in the history
Changed pipe function applications to valid regular Python function
calls in the flatten pure-Python example.
  • Loading branch information
evhub committed Jan 20, 2024
2 parents 5ff7425 + d132aaf commit 6fe4b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3960,7 +3960,7 @@ flat_it = iter_of_iters |> flatten |> list
```coconut_python
from itertools import chain
iter_of_iters = [[1, 2], [3, 4]]
flat_it = iter_of_iters |> chain.from_iterable |> list
flat_it = list(chain.from_iterable(iter_of_iters))
```

#### `scan`
Expand Down

0 comments on commit 6fe4b58

Please sign in to comment.