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

September 2025

S M T W T F S
 1 2345 6
78 9 10 111213
14 151617 181920
212223 24252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 27th, 2025 10:44 pm
Powered by Dreamwidth Studios