mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
implemented Str.trimRight
This commit is contained in:
parent
f92a1f83e3
commit
8d7c252fce
12 changed files with 237 additions and 1 deletions
|
@ -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()));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue