Anonymous user
Y combinator: Difference between revisions
m
→{{header|Lambdatalk}}: improving code
GordonBGood (talk | contribs) (→{{header|Elm}}: complete the solution with both Z and Y combinators and their use...) |
m (→{{header|Lambdatalk}}: improving code) |
||
Line 3,566:
=={{header|Lambdatalk}}==
Tested in http://
<lang Scheme>
1) defining the Ycombinator
{def Y {lambda {:f} {:f :f}}}
2) defining non recursive functions
Line 3,590 ⟶ 3,588:
3) testing
{{Y almost-fac} 6}
-> 720
{{Y almost-fibo} 8}
-> 34
|