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 23456
78910111213
14151617181920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 4th, 2025 04:41 am
Powered by Dreamwidth Studios