Y combinator: Difference between revisions
Content deleted Content added
m →{{header|Scala}}: update external link |
|||
Line 4,458: | Line 4,458: | ||
=={{header|Scala}}== |
=={{header|Scala}}== |
||
Credit goes to the thread in [ |
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) { |