{"url":"https://omiend.hatenablog.jp/entry/2018/10/11/163200","image_url":null,"author_name":"omiend","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fomiend.hatenablog.jp%2Fentry%2F2018%2F10%2F11%2F163200\" title=\"Scala\u3068Ruby\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3067\u4f7f\u3048\u308b.map\u306b\u3064\u3044\u3066\u3061\u3087\u3063\u3068\u8abf\u3079\u3066\u307f\u305f - the industrial\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","height":"190","categories":["Ruby","Scala","PROGRAMMING","WORK"],"author_url":"https://blog.hatena.ne.jp/omiend/","version":"1.0","type":"rich","published":"2018-10-11 16:32:00","title":"Scala\u3068Ruby\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3067\u4f7f\u3048\u308b.map\u306b\u3064\u3044\u3066\u3061\u3087\u3063\u3068\u8abf\u3079\u3066\u307f\u305f","blog_title":"the industrial","provider_url":"https://hatena.blog","description":"\u7a81\u7136\u3067\u3059\u304c \u5148\u65e5\u3001\u5f8c\u8f29\u304f\u3093\u304c\u3053\u3093\u306a\u5b9f\u88c5\u3092\u3057\u307e\u3057\u305f\u3002 _nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] _divisible = _nums.select{ |n| n % 2 == 0 } p _divisible # [2, 4, 6, 8, 10] _multiplied = _divisible.map {|n| n * 100 } p _multiplied # [200, 400, 600, 800, 1000] \u5b9f\u969b\u306f\u30d7\u30ed\u30c0\u30af\u30c8\u4e0a\u306b\u5b9f\u88c5\u3057\u305f\u30b3\u30fc\u30c9\u3068\u5c11\u3057\u9055\u3044\u307e\u3059\u304c\u3001\u8981\u4ef6\u3068\u3057\u3066\u306f\u300c\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u4e2d\u304b\u3089\u8a72\u5f53\u3059\u308b\u3082\u306e\u3060\u3051\u306b\u3057\u307c\u308a\u3001\u51e6\u7406\u3092\u65bd\u3057\u3066\u65b0\u3057\u3044\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u2026","provider_name":"Hatena Blog","blog_url":"https://omiend.hatenablog.jp/"}