Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.

[1] https://jsfiddle.net/9ump7bt5/1/



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: