mmore lambda
This commit is contained in:
parent
31918080e4
commit
fe0bcd8622
1 changed files with 7 additions and 9 deletions
|
|
@ -413,13 +413,11 @@ export const create_vector = function (vector) { //rename to create_vector
|
||||||
}
|
}
|
||||||
|
|
||||||
const resolve_arguments = function (argument_exprs) {
|
const resolve_arguments = function (argument_exprs) {
|
||||||
let arguments_list = [];
|
return argument_exprs.map(expr => {
|
||||||
for (let i = 0; i < argument_exprs.length; i++) {
|
let value = visit(expr);
|
||||||
let value = visit(argument_exprs[i]);
|
while (value.lazy_expression) {
|
||||||
if (value.lazy_expression) {
|
value = value.get();
|
||||||
value = value.get(); // not convinced this must be here, but where else?
|
|
||||||
}
|
}
|
||||||
arguments_list.push(value);
|
return value;
|
||||||
}
|
});
|
||||||
return arguments_list;
|
|
||||||
}
|
}
|
||||||
Loading…
Add table
Reference in a new issue