VALUE
http://golf.shinh.org/reveal.rb?sum+of+square+numbers/leonid/1217510219&rb
http://golf.shinh.org/reveal.rb?sum+of+square+numbers/leonid/1217511494&grb
丁度「Rubyオブジェクトの構造」を読み始めていたのでなんとか合点がいった。
>> [TR,F,N,*-3..7].m &:h Object::TRUE -> TR Object::FALSE -> F Object::NIL -> N Array#map -> m TrueClass#hash -> h FalseClass#hash -> h NilClass#hash -> h Fixnum#hash -> h => [2, 0, 4, -5, -3, -1, 1, 3, 5, 7, 9, 11, 13, 15] >> 42.a?{|n|n._i==n<<1|1} Fixnum#all? -> a? Fixnum#__id__ -> _i => true
…奥が深い。