Give List.first the right name

This commit is contained in:
Richard Feldman 2020-04-25 07:51:56 -04:00
parent a399614824
commit e78b126207

View file

@ -181,14 +181,14 @@ fn list_first(var_store: &VarStore) -> Def {
let expr = Closure( let expr = Closure(
var_store.fresh(), var_store.fresh(),
Symbol::LIST_GET, Symbol::LIST_FIRST,
Recursive::NotRecursive, Recursive::NotRecursive,
args, args,
Box::new((no_region(body), var_store.fresh())), Box::new((no_region(body), var_store.fresh())),
); );
Def { Def {
loc_pattern: no_region(Identifier(Symbol::LIST_GET)), loc_pattern: no_region(Identifier(Symbol::LIST_FIRST)),
loc_expr: no_region(expr), loc_expr: no_region(expr),
expr_var: var_store.fresh(), expr_var: var_store.fresh(),
pattern_vars: SendMap::default(), pattern_vars: SendMap::default(),