fix example

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
Anton-4 2024-11-16 19:30:47 +01:00 committed by GitHub
parent 35f221d9de
commit 47d810e059
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1263,7 +1263,7 @@ splitAt = \elements, userSplitIndex ->
## Splits the input list on the delimiter element.
##
## ```roc
## List.splitOn [1, 2, 3] 2 == [[1], [2]]
## List.splitOn [1, 2, 3] 2 == [[1], [3]]
## ```
splitOn : List a, a -> List (List a) where a implements Eq
splitOn = \elements, delimiter ->