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:
Chelsea Troy 2021-10-25 00:06:37 -05:00
parent 9633a5adaa
commit 063d7b178b
No known key found for this signature in database
GPG key ID: A631885A970636C2
2 changed files with 19 additions and 11 deletions

View file

@ -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,