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

October 2025

S M T W T F S
    1 23 4
5 678 9 1011
12 13 1415 161718
1920 2122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 21st, 2025 03:52 pm
Powered by Dreamwidth Studios