{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fti9wab.hatenadiary.jp%2Fentry%2F2018%2F01%2F09%2F000000\" title=\"\u66f8\u304d\u65b9\u30e1\u30e2 Ruby - \u3061\u304f\u308f\u5de5\u52d9\u5e97\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://ti9wab.hatenadiary.jp/","url":"https://ti9wab.hatenadiary.jp/entry/2018/01/09/000000","height":"190","author_name":"ti9wab","author_url":"https://blog.hatena.ne.jp/ti9wab/","provider_url":"https://hatena.blog","width":"100%","description":"Ruby\u521d\u5fc3\u8005\u306a\u306e\u3067ggr\u65b9\u3082\u3088\u3061\u3088\u3061\u3067\u3042\u308b\u3002 \u540c\u3058\u82e6\u52b4\u306e\u7e70\u308a\u8fd4\u3057\u306f\u3064\u3089\u3044\u306e\u3067\u968f\u6642\u307e\u3068\u3081\u308b\u3002 continue\u7684\u306a\u3084\u3064 next\u3092\u4f7f\u3046 map \u6982\u8981 \u914d\u5217\u306e\u4e2d\u8eab\u3092\u5909\u63db\u3059\u308b \u7528\u4f8b a1 = [100, 200, 300] a2 = a1.map { |x| x * 2 } p a2 # => [200, 400, 600] \u53c2\u8003 Ruby\u306emap, map!\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9 - UX MILK reduce \u6982\u8981 \u914d\u5217\u306e\u5185\u5bb9\u3092\u4f7f\u3063\u3066\u7e70\u308a\u8fd4\u3057\u8a08\u7b97\u3059\u308b \u7528\u4f8b numbers = [1,2,3,4,5] puts numbers.reduce {|sum, n| sum + n } # => 15 \u53c2\u2026","type":"rich","provider_name":"Hatena Blog","published":"2018-01-09 00:00:00","title":"\u66f8\u304d\u65b9\u30e1\u30e2 Ruby","version":"1.0","blog_title":"\u3061\u304f\u308f\u5de5\u52d9\u5e97","categories":["ruby","\u66f8\u304d\u65b9\u30e1\u30e2"],"image_url":null}