mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
adding List.sortAsc builtin
This commit is contained in:
parent
c0ea664141
commit
05c01a81f5
4 changed files with 52 additions and 1 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))))
|
||||
);
|
||||
|
||||
// find : List elem, (elem -> Bool) -> Result elem [ NotFound ]*
|
||||
{
|
||||
let not_found = SolvedType::TagUnion(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue