mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Merge branch 'trunk' into enewbury/list-sort-desc
This commit is contained in:
commit
a96d5e6abf
4 changed files with 54 additions and 3 deletions
|
@ -1302,6 +1302,13 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
Box::new(list_type(flex(TVAR1))),
|
||||
);
|
||||
|
||||
// sortAsc : List (Num a) -> List (Num a)
|
||||
add_top_level_function_type!(
|
||||
Symbol::LIST_SORT_ASC,
|
||||
vec![list_type(num_type(flex(TVAR1)))],
|
||||
Box::new(list_type(num_type(flex(TVAR1))))
|
||||
);
|
||||
|
||||
// sortDesc : List (Num a) -> List (Num a)
|
||||
add_top_level_function_type!(
|
||||
Symbol::LIST_SORT_DESC,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue