Jump to content

Y combinator: Difference between revisions

m
→‎{{header|Scala}}: update external link
m (→‎{{header|Scala}}: update external link)
Line 4,458:
 
=={{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]
<lang scala>def Y[A,B](f: (A=>B)=>(A=>B)) = {
case class W(wf: W=>A=>B) {
92

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.