{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmametter.hatenablog.com%2Fentry%2F20100522%2Fp1\" title=\" Ruby \u3067\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1 - \u307e\u3081\u3081\u3082\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","author_name":"ku-ma-me","description":"ref: \u672a\u6765\u306e\u56fd\u306e\u30a2\u30ea\u30b9 - d.y.d.\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b implicit future \u304c Ruby \u306b\u6b32\u3057\u3044\uff01 # promise \u3092\u4f5c\u308b x = Promise.new a = [1, x, 2, x, 3, x] # \u4eca\u306f\u307e\u3060\u5024\u306b\u306a\u3063\u3066\u3044\u306a\u3044 p a #=> [1, _promise_, 2, _promise_, 3, _promise_] # \u3053\u306e promise \u306f 42 \u306b\u6c7a\u3081\u305f\uff01 (\u4ee3\u5165\u3067\u306f\u306a\u3044\u3088) x === 42 # x \u306e\u7b87\u6240\u306f\u52dd\u624b\u306b 42 \u306b\u306a\u3063\u3066\u3044\u308b p a #=> [1, 42, 2, 42, 3, 42] \u3068\u3044\u3046\u306e\u3082\u3001\u3053\u308c\u304c\u3042\u308c\u3070 Ruby \u3067\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u2026","version":"1.0","image_url":null,"blog_url":"https://mametter.hatenablog.com/","blog_title":"\u307e\u3081\u3081\u3082","url":"https://mametter.hatenablog.com/entry/20100522/p1","type":"rich","title":" Ruby \u3067\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1","categories":["Ruby"],"provider_url":"https://hatena.blog","height":"190","published":"2010-05-22 00:00:00","width":"100%","author_url":"https://blog.hatena.ne.jp/ku-ma-me/"}