Apr. 27th, 2011

juan_gandhi: (Default)
class TypedLambda[T] {
  type TT = T => T
  type Church = TT => TT
  val zero: Church = f => x => x
  def succ(n: Church) = f => n(f)
  val uno = succ(zero)
  val dos = succ(uno)
  val tres = succ(dos)
}


(developed tonight in cooperation with Larry Diehl, David Pollack, and one more person who preferred to stay anonymous.)

(UPD: fixed after critique)

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

November 2025

S M T W T F S
       1
23456 7 8
9 1011 12 1314 15
16171819 202122
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Nov. 20th, 2025 09:13 am
Powered by Dreamwidth Studios