@dallaylaen/ski-interpreter 2.3.0 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2220,7 +2220,11 @@ var require_extras = __commonJS({
2220
2220
  return s.format({ inventory: res.env });
2221
2221
  }).join("; ");
2222
2222
  }
2223
- module.exports = { search, deepFormat, declare };
2223
+ function foldr(expr, fun) {
2224
+ const [head, ...tail] = expr.unroll();
2225
+ return fun(head, tail.map((e) => foldr(e, fun)));
2226
+ }
2227
+ module.exports = { search, deepFormat, declare, foldr };
2224
2228
  }
2225
2229
  });
2226
2230