Y combinator: Difference between revisions

Content deleted Content added
JulianM (talk | contribs)
m →‎{{header|Scala}}: update external link
JulianM (talk | contribs)
Line 4,458: Line 4,458:


=={{header|Scala}}==
=={{header|Scala}}==
Credit goes to the thread in [http://web.archive.org/web/20160709050901/http://scala-blogs.org/2008/09/y-combinator-in-scala.html scala blog]
Credit goes to the thread in [https://web.archive.org/web/20160709050901/http://scala-blogs.org/2008/09/y-combinator-in-scala.html scala blog]
<lang scala>def Y[A,B](f: (A=>B)=>(A=>B)) = {
<lang scala>def Y[A,B](f: (A=>B)=>(A=>B)) = {
case class W(wf: W=>A=>B) {
case class W(wf: W=>A=>B) {