roc/crates/compiler/builtins/roc
Agus Zubiaga 7eedd62844
Fix List.splitFirst and List.splitLast docs
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>
2023-03-08 10:18:42 -03:00
..
Bool.roc Fix some builtin docs 2022-12-24 22:32:14 -05:00
Box.roc fix the formatting for CI 2022-10-25 19:28:49 +11:00
Decode.roc Format Decode.roc 2022-10-23 20:48:07 -05:00
Dict.roc fix: add spaces around ? in optional record field 2023-02-08 18:41:22 +01:00
Encode.roc List dependencies in the stdlib explicitly rather than hard-coding 2022-10-05 18:53:49 -05:00
Hash.roc add the ability to hash Nats 2022-12-05 16:00:56 -08:00
Json.roc fix builtin formatting 2022-12-04 16:13:38 -08:00
List.roc Fix List.splitFirst and List.splitLast docs 2023-03-08 10:18:42 -03:00
main.roc roc format 2022-12-24 22:32:15 -05:00
Num.roc implement sqrt and log in the dev backend 2023-02-26 21:41:25 +01:00
Result.roc Update roc files to use new opaque bools 2022-09-20 14:42:04 -05:00
Set.roc Weaken records in let-bindings 2023-01-14 15:33:51 +01:00
Str.roc Fix unicode escape sequences in Str docs 2023-01-31 21:39:57 +04:00