mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
add List.splitAt
This commit is contained in:
parent
b7c2cb084e
commit
45b50bd131
54 changed files with 1479 additions and 1469 deletions
|
@ -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>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue