<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryugate</author_name>
  <author_url>https://blog.hatena.ne.jp/ryugate/</author_url>
  <blog_title>ryugateの日記</blog_title>
  <blog_url>https://ryugate.hatenadiary.org/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>（再び、mizushimaさん＠Lingrより）flatMapとは （計算の）「結果「である」コレクションを連結した新しいコレクションを返」すmap である。例えば、 List(1, 2, 3).map{i =&gt; List(i, i + 1)} の結果は List(List(1, 2), List(2, 3), List(3, 4)) になりますが List(1, 2, 3).flatMap{i =&gt; List(i, i + 1)} の結果は List(1, 2, 2, 3, 3, 4) に、なります。シグネチャで示すと map [B](f : (A) =&gt; B) : Iterable[B] …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryugate.hatenadiary.org%2Fentry%2F20080527%2Fp2&quot; title=&quot; flatMap - ryugateの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-05-27 00:00:01</published>
  <title> flatMap</title>
  <type>rich</type>
  <url>https://ryugate.hatenadiary.org/entry/20080527/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
