roc/compiler/builtins/docs
ayazhafiz f65b174ab5 Implement List.find
`List.find : List elem, (elem -> Bool) -> Result elem [ NotFound ]*`
behaves as follows:

```
>>> List.find [1, 2, 3] (\n -> n > 2)
Ok 2
>>> List.find [1, 2, 3] (\n -> n > 4)
Err NotFound
```

We implement this as builtin in two phases. First, we call out to a
pure-llvm-lowlevel `ListFindUnsafe` that returns a record indicating
whether a satisfying element was found, and the value of that element
(the value is all null bytes if the element wasn't found). Then, we lift
that record to a `Result` via a standard construction of the can AST.

Closes #1909
2021-11-08 21:03:14 -05:00
..
Bool.roc Fix a stray header 2021-08-08 15:29:06 -04:00
Dict.roc Update some map docs 2021-08-08 20:32:50 -04:00
List.roc Implement List.find 2021-11-08 21:03:14 -05:00
Num.roc Correct minor spelling mistakes 2021-11-06 15:29:08 +01:00
Result.roc Add Result docs 2021-08-08 20:36:52 -04:00
Set.roc Update some map docs 2021-08-08 20:32:50 -04:00
Str.roc True and False aren't links 2021-08-08 23:31:42 -04:00