mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
![]() The examples in the docs appear to expect `List.splitFirst` to exclude occurrences of the delimiter in the `after` list: ``` List.splitFirst [Foo, Z, Bar, Z, Baz] Z == Ok { before: [Foo], after: [Bar, Baz] } ``` However, only the first occurrence of the delimiter in the `before` list. The `after` list contains everything after the first occurrence of the delimiter. ``` List.splitFirst [Foo, Z, Bar, Z, Baz] Z == Ok { before: [Foo], after: [Bar, Z, Baz] } ``` The same applies to `List.splitLast` Signed-off-by: Agus Zubiaga <hi@aguz.me> |
||
---|---|---|
.. | ||
Bool.roc | ||
Box.roc | ||
Decode.roc | ||
Dict.roc | ||
Encode.roc | ||
Hash.roc | ||
Json.roc | ||
List.roc | ||
main.roc | ||
Num.roc | ||
Result.roc | ||
Set.roc | ||
Str.roc |