{"version":"1.0","image_url":null,"description":"\u3044\u307e\u307e\u3067\u30d6\u30ed\u30c3\u30af\u3067\u8a55\u4fa1\u3057\u3066\u771f\u306e\u3082\u306e\u306fselect\u3067\u3001\u305d\u308c\u4ee5\u5916\u306freject\u3068\u304b2\u56de\u3084\u3063\u3066\u305f... \u3067\u3082\u3001\u3053\u308c\uff11\u56de\u3067\u3067\u304d\u305f\u3089\u304a\u3057\u3083\u308c\u3067\u3059\u3088\u306d\u30fc \u305d\u3093\u306a\u3068\u304d\u306fEnumerable#partition \u3053\u3093\u306a\u304b\u3093\u3058( \u02d8\u03c9\u02d8) array = [\"cat\", 1, 2, \"dog\", 0.1] numbers, non_numbers = array.partition { |v| v.is_a?(Numeric) } numbers #=> [1, 2, 0.1] non_numbers #=> [\"cat\", \"dog\"] Happy Hacking\u0669( \u2018\u03c9\u2019 )\u0648","published":"2015-03-12 23:19:45","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmurajun1978.hatenadiary.com%2Fentry%2F2015%2F03%2F12%2F231945\" title=\"Enumerable#partition\u3067\u30d6\u30ed\u30c3\u30af\u306e\u8a55\u4fa1\u304c\u771f\u3068\u507d\u306e\u8981\u7d20\u306b\u5206\u3051\u308b\u0669( \u2018\u03c9\u2019 )\u0648 - Murajun&#39;s Style\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Ruby"],"blog_title":"Murajun's Style","author_url":"https://blog.hatena.ne.jp/murajun1978/","height":"190","url":"https://murajun1978.hatenadiary.com/entry/2015/03/12/231945","title":"Enumerable#partition\u3067\u30d6\u30ed\u30c3\u30af\u306e\u8a55\u4fa1\u304c\u771f\u3068\u507d\u306e\u8981\u7d20\u306b\u5206\u3051\u308b\u0669( \u2018\u03c9\u2019 )\u0648","type":"rich","blog_url":"https://murajun1978.hatenadiary.com/","provider_name":"Hatena Blog","width":"100%","author_name":"murajun1978"}