mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Swap List.repeat args order to put the list first
This commit is contained in:
parent
5fa368ff0a
commit
92e0f8714f
8 changed files with 20 additions and 20 deletions
|
@ -1264,10 +1264,10 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
Box::new(list_type(flex(TVAR1)))
|
||||
);
|
||||
|
||||
// repeat : Nat, elem -> List elem
|
||||
// repeat : elem, Nat -> List elem
|
||||
add_top_level_function_type!(
|
||||
Symbol::LIST_REPEAT,
|
||||
vec![nat_type(), flex(TVAR1)],
|
||||
vec![flex(TVAR1), nat_type()],
|
||||
Box::new(list_type(flex(TVAR1))),
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue