mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
reimplement Result
This commit is contained in:
parent
410426f059
commit
d1d7cfef44
7 changed files with 155 additions and 6 deletions
|
@ -1143,7 +1143,7 @@ define_builtins! {
|
|||
57 LIST_SORT_DESC_COMPARE: "#sortDescCompare"
|
||||
}
|
||||
5 RESULT: "Result" => {
|
||||
0 RESULT_RESULT: "Result" imported // the Result.Result type alias
|
||||
0 RESULT_RESULT: "Result" // the Result.Result type alias
|
||||
1 RESULT_OK: "Ok" imported // Result.Result a e = [ Ok a, Err e ]
|
||||
// NB: not strictly needed; used for finding global tag names in error suggestions
|
||||
2 RESULT_ERR: "Err" imported // Result.Result a e = [ Ok a, Err e ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue