Skip to content

Commit c417e4d

Browse files
authored
Merge pull request #212 from Youshin/master
Docs: Belt partition example
2 parents bd4e83d + 8be4a26 commit c417e4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/docs/manual/latest/api/belt/array.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,9 +684,9 @@ let partition: (array<'a>, 'a => bool) => (array<'a>, array<'a>)
684684
`partition(f, a)` split array into tuple of two arrays based on predicate `f`; first of tuple where predicate cause true, second where predicate cause false
685685

686686
```res example
687-
Belt.Array.partition([1, 2, 3, 4, 5], (x) => mod(x, 2) == 0) == ([2, 4], [1, 2, 3])
687+
Belt.Array.partition([1, 2, 3, 4, 5], (x) => mod(x, 2) == 0) == ([2, 4], [1, 3, 5])
688688
689-
Belt.Array.partition([1, 2, 3, 4, 5], (x) => mod(x, 2) != 0) == ([1, 2, 3], [2, 4])
689+
Belt.Array.partition([1, 2, 3, 4, 5], (x) => mod(x, 2) != 0) == ([1, 3, 5], [2, 4])
690690
```
691691

692692
## reduceU

0 commit comments

Comments
 (0)