{"width":"100%","published":"2020-11-01 17:08:10","url":"https://hiramekun.hatenablog.com/entry/2020/11/01/170810","author_name":"thescript1210","type":"rich","provider_url":"https://hatena.blog","blog_title":"\u3072\u3089\u3081\u306e\u65e5\u5e38","version":"1.0","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiramekun.hatenablog.com%2Fentry%2F2020%2F11%2F01%2F170810\" title=\"Scala\u3067\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0: \u7d2f\u7a4d\u548c - \u3072\u3089\u3081\u306e\u65e5\u5e38\" 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://hiramekun.hatenablog.com/","description":"scanLeft\u306ffoldLeft\u306e\u9014\u4e2d\u7d4c\u904e\u306e\u5024\u3092\u4fdd\u6301\u3059\u308b\u3088\u3046\u306a\u95a2\u6570\u3002 \u3053\u308c\u3092\u4f7f\u3048\u3070\u3001\u7d2f\u7a4d\u548c\u306e\u8a08\u7b97\u304c\u7c21\u5358\u306b\u3067\u304d\u308b\u3002 \u521d\u671f\u5024\u304c\u4e00\u756a\u6700\u521d\u306b\u633f\u5165\u3055\u308c\u308b\u306e\u3067\u3001\u5143\u306e\u914d\u5217\u3088\u308a\u5927\u304d\u3055\u304c+1\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3059\u308b\u3002 val a = Array(1, 2, 3) val d = a.scanLeft(0L)(_ + _) println(d.mkString(\"Array(\", \", \", \")\")) // Array(0, 1, 3, 6) Visual Scala Reference \u306f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u30e1\u30bd\u30c3\u30c9\u3092\u56f3\u3067\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u3066\u3044\u3066\u304a\u3059\u3059\u3081\u3002 superruzafa.github.io","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","Scala"],"height":"190","title":"Scala\u3067\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0: \u7d2f\u7a4d\u548c","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/thescript1210/"}