implemented Str.trimRight

This commit is contained in:
Theo Felippe 2021-11-13 18:02:58 +00:00
parent f92a1f83e3
commit 8d7c252fce
12 changed files with 237 additions and 1 deletions

View file

@ -639,6 +639,13 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
Box::new(str_type())
);
// trimRight : Str -> Str
add_top_level_function_type!(
Symbol::STR_TRIM_RIGHT,
vec![str_type()],
Box::new(str_type())
);
// trim : Str -> Str
add_top_level_function_type!(Symbol::STR_TRIM, vec![str_type()], Box::new(str_type()));