{"width":"100%","version":"1.0","image_url":null,"blog_url":"https://www.shigemk2.com/","blog_title":"by shigemk2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2Fmap_foldleft_scala\" title=\"Map\u3067foldLeft\u3068\u304b - by shigemk2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/shigemk2/","author_name":"shigemk2","title":"Map\u3067foldLeft\u3068\u304b","provider_url":"https://hatena.blog","published":"2015-11-30 23:34:20","height":"190","provider_name":"Hatena Blog","categories":["Scala"],"url":"https://www.shigemk2.com/entry/map_foldleft_scala","description":"\u7279\u306b\u610f\u5473\u306f\u306a\u3044\u3051\u3069\u3002 scala> val m = List(Map(\"name1\"->\"hoge\", \"name2\"->\"fuga\"), Map(\"name1\"->\"bar\", \"name2\"->\"buzz\")) m: List[scala.collection.immutable.Map[String,String]] = List(Map(name1 -> hoge, name2 -> fuga), Map(name1 -> bar, name2 -> buzz)) scala> m.foldLeft(Map[String,String]()) { (z, n) => z.updated\u2026","type":"rich"}