Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.21 KB | None | 0 0
  1.   def Ycomb[A, B](f: (A => B) => (A => B)): A => B = {
  2.     case class selfFn(usf: selfFn => (A => B))
  3.     def selfApply(sf: selfFn): A => B = sf.usf(sf)(_)
  4.     selfApply(selfFn(sf => f(selfApply(sf))))
  5.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement