mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
unique and std work, check if delimiter is longer than str
This commit is contained in:
parent
5fe6eefa97
commit
43960cf1c6
6 changed files with 108 additions and 3 deletions
|
@ -484,6 +484,15 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
|
||||
// Str module
|
||||
|
||||
// Str.split : Str, Str -> List Str
|
||||
add_type(
|
||||
Symbol::STR_SPLIT,
|
||||
SolvedType::Func(
|
||||
vec![str_type(), str_type()],
|
||||
Box::new(list_type(str_type())),
|
||||
),
|
||||
);
|
||||
|
||||
// Str.concat : Str, Str -> Str
|
||||
add_type(
|
||||
Symbol::STR_CONCAT,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue