{"image_url":"https://images-fe.ssl-images-amazon.com/images/I/41CGDEMgyoL._SL75_.jpg","blog_title":"\u3072\u304c\u304d\u306e\u65e5\u8a18","version":"1.0","author_name":"mas-higa","blog_url":"https://mas-higa.hatenadiary.org/","provider_name":"Hatena Blog","title":"\u30d6\u30ed\u30c3\u30af\u306e\u53d7\u3051\u6e21\u3057","provider_url":"https://hatena.blog","height":"190","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmas-higa.hatenadiary.org%2Fentry%2F20100308%2F1268058347\" title=\"\u30d6\u30ed\u30c3\u30af\u306e\u53d7\u3051\u6e21\u3057 - \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>","author_url":"https://blog.hatena.ne.jp/mas-higa/","width":"100%","published":"2010-03-08 23:25:47","url":"https://mas-higa.hatenadiary.org/entry/20100308/1268058347","description":"\u4ee5\u524d\u30de\u30fc\u30b8\u30bd\u30fc\u30c8\u3092\u4f5c\u3063\u305f\u3068\u304d\u3001\u53d7\u3051\u53d6\u3063\u305f\u30d6\u30ed\u30c3\u30af\u3092\u5225\u306e\u30e1\u30bd\u30c3\u30c9\u3078\u3069\u3046\u6e21\u3057\u305f\u3089\u3044\u3044\u306e\u304b\u5206\u304b\u3089\u305a\u306b\u8a66\u884c\u932f\u8aa4\u3057\u305f\u3002 \u30de\u30fc\u30b8\u30bd\u30fc\u30c8\u306b\u30d6\u30ed\u30c3\u30af\u3092\u6e21\u3059 \u300c\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e Ruby\u300d\u3092\u8aad\u3093\u3067\u3044\u305f\u3089\u3001\u3082\u3063\u3068\u30b7\u30f3\u30d7\u30eb\u306a\u30d6\u30ed\u30c3\u30af\u306e\u6e21\u3057\u65b9\u304c\u66f8\u3044\u3066\u3042\u3063\u305f\u3002 module Enumerable def merge(o, &comp) comp = Proc.new{|a, b| a <=> b} if comp.nil? i = 0 j = 0 m = [] while i < size && j < o.size if comp [self[i], o[j]] <= 0 m << self[i] i += 1 e\u2026","categories":["Ruby"]}