{"image_url":null,"description":"\u3059\u3093\u307e\u305b\u3093\u30fb\u30fb\u30fb \u3088\u304f\u8abf\u3079\u305a\u306b\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u30fb\u30fb\u30fb\u3002 1 class Array 2 def to_v 3 begin 4 raise \"Array is Empty!!\\n\" if self.empty? 5 sh = 0 6 value = 0 7 self.each{ |v| value = value | (v << sh); sh = sh + 8 } 8 return value 9 rescue 10 STDERR.print $! 11 end 12 end 13 end 14 15 if $0 == __FILE__ 16 open( \"a.bin\" , \"rb\" ) do \u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fseasons.hateblo.jp%2Fentry%2F20060915%2F1158237205\" title=\"Array\u3092\u6570\u5024\u306b\u5909\u63db - Seasons.NET\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/Seasons/","published":"2006-09-15 21:33:25","blog_url":"https://seasons.hateblo.jp/","width":"100%","author_name":"Seasons","provider_name":"Hatena Blog","title":"Array\u3092\u6570\u5024\u306b\u5909\u63db","type":"rich","version":"1.0","blog_title":"Seasons.NET","provider_url":"https://hatena.blog","categories":["Ruby"],"url":"https://seasons.hateblo.jp/entry/20060915/1158237205","height":"190"}