> but I think your mutualRecursion() function is a multi-parameter version of the Y combinator
Yes, exactly. I've created a fork [1] where I replace the multiple-parameter Y combinator with a single-parameter kind that operates on what is effectively a vtable.
Yes, exactly. I've created a fork [1] where I replace the multiple-parameter Y combinator with a single-parameter kind that operates on what is effectively a vtable.
[1] https://jsfiddle.net/9ump7bt5/1/