<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kmizushima</author_name>
  <author_url>https://blog.hatena.ne.jp/kmizushima/</author_url>
  <blog_title>kmizuの日記</blog_title>
  <blog_url>https://kmizu.hatenablog.com/</blog_url>
  <categories>
    <anon>Scala</anon>
    <anon>S-99</anon>
  </categories>
  <description>S-99: Ninety-Nine Scala Problems(P01-P10)を解いてみたの続き。今回は、表題の通り、P11-P20までを解いてみた。とりあえず最初の回答を作るまでに大体50分くらい。その後、dropとrotateについて題意を勘違いしていたのに気づいてコードを修正。以下、回答のコード。 object P11toP20 { import P01toP10._ def flatMap[A, B](list: List[A])(f: A =&gt; List[B]): List[B] = { foldLeft(list, List[B]()){(b, a) =&gt; append(b, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkmizu.hatenablog.com%2Fentry%2F20090525%2F1243236020&quot; title=&quot;S-99: Ninety-Nine Scala Problems(P11-P20)を解いてみた - kmizuの日記&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>2009-05-25 16:20:20</published>
  <title>S-99: Ninety-Nine Scala Problems(P11-P20)を解いてみた</title>
  <type>rich</type>
  <url>https://kmizu.hatenablog.com/entry/20090525/1243236020</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
