{"author_name":"K_Koh","height":"190","blog_url":"https://k-koh.hatenablog.com/","width":"100%","published":"2019-12-14 17:37:59","author_url":"https://blog.hatena.ne.jp/K_Koh/","image_url":null,"version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk-koh.hatenablog.com%2Fentry%2F2019%2F12%2F14%2F173759\" title=\"Ruby\u57fa\u790e\u554f\u984c100\u672c\u30ce\u30c3\u30af#15 \u8907\u6570\u306e\u914d\u5217\u306b\u4e26\u884c\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3059\u308b - Just do IT\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","categories":["Ruby\u57fa\u790e100\u672c\u30ce\u30c3\u30af"],"blog_title":"Just do IT","url":"https://k-koh.hatenablog.com/entry/2019/12/14/173759","provider_name":"Hatena Blog","description":"\u304a\u984c \u6570\u5024\u304b\u3089\u306a\u308b\u914d\u5217num1\u3068num2\u306b\u305f\u3044\u3057\u3066\u3001\u305d\u308c\u3089\u306e\u500b\u3005\u306e\u8981\u7d20\u3092\u8db3\u3057\u5408\u308f\u305b\u305f\u8981\u7d20\u304b\u3089\u306a\u308b\u914d\u5217\u3092\u8fd4\u3059\u30e1\u30bd\u30c3\u30c9sum_array\u3092\u5b9a\u7fa9\u305b\u3088 \u3053\u3093\u306a\u611f\u3058\u306e\u7d50\u679c\u306b\u305b\u3088\u3002 p sum_array([1, 2, 3],[4, 6, 8]) => [5, 8, 11] \uff08\u305f\u306e\u3057\u3044Ruby\u306b\u53ce\u9332\u3055\u308c\u3066\u3044\u308b\u4f8b\u984c\u3067\u3059\uff09 \u56de\u7b54 num1 = [1,2,3] num2 = [4,6,8] def sum_array(ary1, ary2) result = [] ary1.zip(ary2) do |a, b| result << a + b end result # return \u306e\u610f\u5473\u3067 end p su\u2026","provider_url":"https://hatena.blog","title":"Ruby\u57fa\u790e\u554f\u984c100\u672c\u30ce\u30c3\u30af#15 \u8907\u6570\u306e\u914d\u5217\u306b\u4e26\u884c\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3059\u308b"}