mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-02 19:32:17 +00:00
Add builtin List.walkWithIndexUntil
This commit is contained in:
parent
f795d0856a
commit
59eb28ef58
4 changed files with 46 additions and 0 deletions
|
@ -3768,6 +3768,14 @@ mod solve_expr {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn list_walk_with_index_until() {
|
||||
infer_eq_without_problem(
|
||||
indoc!(r#"List.walkWithIndexUntil"#),
|
||||
"List elem, state, (state, elem, Nat -> [Break state, Continue state]) -> state",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn list_drop_at() {
|
||||
infer_eq_without_problem(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue