{"blog_url":"https://mas-higa.hatenadiary.org/","type":"rich","categories":["Ruby"],"blog_title":"\u3072\u304c\u304d\u306e\u65e5\u8a18","description":"Slashdot.jp \u3067\u3001\u521d\u3081\u3066\u5b66\u3076\u30bd\u30fc\u30c8\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306f\u4f55\u304c\u3044\u3044? \u3068\u3044\u3046\u8a71\u984c\u304c\u3042\u3063\u305f\u3002\u3061\u3087\u304f\u3061\u3087\u304f\u30de\u30fc\u30b8\u30bd\u30fc\u30c8\u304c\u7d39\u4ecb\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u4f5c\u3063\u3066\u307f\u305f\u3002\u307e\u305a\u306f\u30de\u30fc\u30b8\u3002 module Enumerable def merge(o) i = 0 j = 0 m = [] while i < size && j < o.size if self[i] < o[j] m << self[i] i += 1 else m << o[j] j += 1 end end m += self[i..-1] m += o[j..-1] end end [1, 2, 3].merge [4, 5] # => [1, 2\u2026","author_url":"https://blog.hatena.ne.jp/mas-higa/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmas-higa.hatenadiary.org%2Fentry%2F20080831%2F1220186370\" title=\"\u30de\u30fc\u30b8\u30bd\u30fc\u30c8 - \u3072\u304c\u304d\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","provider_url":"https://hatena.blog","title":"\u30de\u30fc\u30b8\u30bd\u30fc\u30c8","image_url":null,"url":"https://mas-higa.hatenadiary.org/entry/20080831/1220186370","height":"190","width":"100%","provider_name":"Hatena Blog","author_name":"mas-higa","published":"2008-08-31 21:39:30"}