mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
add Str.endsWith
This commit is contained in:
parent
e8583a72fb
commit
22d798b7c7
12 changed files with 121 additions and 15 deletions
|
@ -417,6 +417,12 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
top_level_function(vec![str_type(), str_type()], Box::new(bool_type())),
|
||||
);
|
||||
|
||||
// endsWith : Str, Str -> Bool
|
||||
add_type(
|
||||
Symbol::STR_ENDS_WITH,
|
||||
top_level_function(vec![str_type(), str_type()], Box::new(bool_type())),
|
||||
);
|
||||
|
||||
// countGraphemes : Str -> Int
|
||||
add_type(
|
||||
Symbol::STR_COUNT_GRAPHEMES,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue