add List.splitAt

This commit is contained in:
Isaac Van Doren 2024-11-09 14:16:41 -06:00
parent b7c2cb084e
commit 45b50bd131
No known key found for this signature in database
GPG key ID: CFA524CD470E5B94
54 changed files with 1479 additions and 1469 deletions

View file

@ -226,7 +226,7 @@ fn list_str_split() {
r#"
s = Str.concat "A long enough string " "to be heap-allocated"
list = [s, s, s]
List.split list 1
List.splitAt list 1
"#
),
(RocList<RocStr>, RocList<RocStr>),
@ -245,7 +245,7 @@ fn list_str_split_zero() {
r#"
s = Str.concat "A long enough string " "to be heap-allocated"
list = [s, s, s]
List.split list 0
List.splitAt list 0
"#
),
(RocList<RocStr>, RocList<RocStr>),