You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you run the mce and declare a fucntion, when calling the function the passed argument gets transformed to a record. I believe the issue is on line 288. transform_application() maps
tagged_list_to_record forcing the transformation. Tried changing it to map incremental_transform. But now i got other errors trycing to call the factorial function
"throw new Error('head(xs) expects a pair as argument xs, but encountered ' + (0, stringify_1.stringify)(xs));"
"Error: head(xs) expects a pair as argument xs, but encountered undefined"
The text was updated successfully, but these errors were encountered:
I suspect this function to bethe cause of the second error.
line:291
function transform_operator_combination(op: TaggedListOperatorCombination): OperatorCombination {
return append(list(head(op), head(tail(op)), map(transform_component, tail(tail(op)))));
Found the solution to the issue:
In incremental_transforms sub-function "transform_operator_combination" there is a typo with the parenthesis.
to resolve this issue, switch out the return statement with the following code:
before, the parenthesis for the list() where enclosing the second argument map function which in turn appended the value "undefined" to the list which we see in the error message.
If you run the mce and declare a fucntion, when calling the function the passed argument gets transformed to a record. I believe the issue is on line 288. transform_application() maps
tagged_list_to_record forcing the transformation. Tried changing it to map incremental_transform. But now i got other errors trycing to call the factorial function
"throw new Error('head(xs) expects a pair as argument xs, but encountered ' + (0, stringify_1.stringify)(xs));"
"Error: head(xs) expects a pair as argument xs, but encountered undefined"
The text was updated successfully, but these errors were encountered: