Software Wrighter Lab Blog
An article explaining how to implement the Y combinator in a strict evaluation language.
What does it do?
The article explains why the classic Y combinator does not run directly in sw-MLPL's immediate evaluation model. It then presents a variant using a partially applied function that delays self invocation by one step, and applies it to factorial and Fibonacci examples. Readers can follow linked runnable examples and related source files to inspect the combinator's definition and results.
Key features
- Explain the Y combinator and fixed point concept
- Explain why the classic Y combinator does not terminate under immediate evaluation
- Present a runnable variant using partial application
- Link factorial and Fibonacci examples and runnable lesson materials