Skip to content

Commit 244428d

Browse files
committed
Docs: Belt partition description
1 parent 92a78ea commit 244428d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ let partitionU: (array<'a>, (. 'a) => bool) => (array<'a>, array<'a>)
681681
let partition: (array<'a>, 'a => bool) => (array<'a>, array<'a>)
682682
```
683683

684-
`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
684+
`partition(xs, p)` split array into tuple of two arrays based on predicate `p`; first of tuple where predicate cause true, second where predicate cause false.
685685

686686
```res example
687687
Belt.Array.partition([1, 2, 3, 4, 5], (x) => mod(x, 2) == 0) == ([2, 4], [1, 3, 5])

0 commit comments

Comments
 (0)