Skip to content

Use (RescriptCore.)Array instead of Js.Array2 in pipe docs #767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pages/docs/manual/latest/pipe.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ You'd use them like this:
<CodeTab labels={["ReScript", "JS Output"]}>

```res example
let result = Js.Array2.filter(
Js.Array2.map([1, 2, 3], a => a + 1),
let result = Array.filter(
Array.map([1, 2, 3], a => a + 1),
a => mod(a, 2) == 0
)

Expand All @@ -133,8 +133,8 @@ This looks much worse than the JS counterpart! Clean it up visually with pipe:

```res example
let result = [1, 2, 3]
->Js.Array2.map(a => a + 1)
->Js.Array2.filter(a => mod(a, 2) == 0)
->Array.map(a => a + 1)
->Array.filter(a => mod(a, 2) == 0)

asyncRequest()->setWaitDuration(4000)->send
```
Expand Down