Skip to content

Commit a1955f9

Browse files
hanssvghallak
andauthored
Docs: fix error in List.partition description (#517)
* Docs: fix error in List.partition description * Update docs/sophia_stdlib.md Co-authored-by: Gaith Hallak <[email protected]> --------- Co-authored-by: Gaith Hallak <[email protected]>
1 parent b892a9f commit a1955f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/sophia_stdlib.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1921,7 +1921,7 @@ Removes longest prefix from `l` in which all elements fulfill `p`.
19211921
List.partition(p : 'a => bool, l : list('a)) : (list('a) * list('a))
19221922
```
19231923

1924-
Separates elements of `l` that fulfill `p` and these that do not. Elements fulfilling predicate will be in the right list. For instance
1924+
Separates elements of `l` that fulfill `p` and these that do not. Elements fulfilling the predicate will be in the first element of the returned tuple. For instance
19251925
```
19261926
partition((x) => x > 0, [-1, 1, -2, 0, 1, 2, -3])
19271927
```

0 commit comments

Comments
 (0)