mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
Figured out why dropLast call was producing an argument mismatch:
- Although list_drop_last's LowLevel operation modeling (body) was correct, the defn() CALLED that body with an extra argument for index (a copy-paste error from dropAt). - List.dropAt works now :)
This commit is contained in:
parent
9633a5adaa
commit
063d7b178b
2 changed files with 19 additions and 11 deletions
|
@ -2043,7 +2043,7 @@ fn list_drop_last(symbol: Symbol, var_store: &mut VarStore) -> Def {
|
|||
|
||||
defn(
|
||||
symbol,
|
||||
vec![(list_var, Symbol::ARG_1), (index_var, Symbol::ARG_2)],
|
||||
vec![(list_var, Symbol::ARG_1)],
|
||||
var_store,
|
||||
body,
|
||||
list_var,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue