Add builtin List.split

This commit is contained in:
satotake 2021-11-15 13:50:11 +00:00 committed by GitHub
parent cac718638d
commit 73dda714de
6 changed files with 154 additions and 13 deletions

View file

@ -3793,6 +3793,14 @@ mod solve_expr {
);
}
#[test]
fn list_split() {
infer_eq_without_problem(
indoc!("List.split"),
"List a, Nat -> { before : List a, others : List a }",
);
}
#[test]
fn list_drop_last() {
infer_eq_without_problem(