Index functions
@@ -183,7 +183,7 @@ impl Linearizer<BuildingResource, (UnifTable, HashMap<usize, Ident>)> for Analys
let id = id_gen.id();
match term {
- Term::Let(ident, _, _) => {
+ Term::Let(ident, _, _) | Term::Fun(ident, _) => {
self.env
.insert(ident.to_owned(), lin.state.resource.linearization.len());
lin.push(LinearizationItem {
