December 2011
2 posts
Dec 16th
FizzBuzz in Ruby, as untyped lambda calculus and...
Using just Proc.new and Proc#call, using Church encoding of numerals and untyped lambda calculus, FizzBuzz represented in Ruby 1.9: -> k { -> f { -> f { -> x { f[-> y { x[x][y] }] }[-> x { f[-> y { x[x][y] }] }] }[-> f { -> l { -> x { -> g { -> b { b }[-> p { p[-> x { -> y { x } } ] }[l]][x][-> y { g[f[-> l { -> p { p[-> x { -> y { y } }...
Dec 12th