2008-02-04から1日間の記事一覧

ピリオドを足せ

以下のプログラムに . (ピリオド) を 1 つ加えて Hello, world! を出力させなさい。 s = "Hello, world!" ("aa".."zz").each do |n| class << s; self; end.class_eval do define_method(n) {|x| self } end end puts s if false ふと以下の有名な数式 (?) …