Add builtin List.walkWithIndexUntil

This commit is contained in:
Bryce Miller 2023-12-11 23:04:40 -05:00
parent f795d0856a
commit 59eb28ef58
No known key found for this signature in database
GPG key ID: F1E97BF8DF152350
4 changed files with 46 additions and 0 deletions

View file

@ -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(