<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kamekoopa</author_name>
  <author_url>https://blog.hatena.ne.jp/kamekoopa/</author_url>
  <blog_title>新しいフォルダ (3)</blog_title>
  <blog_url>https://kamekoopa.hateblo.jp/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>高階関数、多相関数。 ここで言う多相は継承等による多相*1ではなく、型変数を利用した(総称)多相関数*2。 この辺りは特に目新しいことは無かった。 データ型(List) List[+A]として変位を共変にしてNil extends List[Nothing]とすることでval l: List[Int] = Nilみたいにできる。 演習問題 // Exercise 2.2 def isSorted[A](array: Array[A], p: (A, A) =&gt; Boolean): Boolean = { @annotation.tailrec def loop(n: Int): Boolean…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkamekoopa.hateblo.jp%2Fentry%2F20150721%2F1437492671&quot; title=&quot; FP in Scala勉強メモ(2) - 新しいフォルダ (3)&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>2015-07-21 00:31:11</published>
  <title> FP in Scala勉強メモ(2)</title>
  <type>rich</type>
  <url>https://kamekoopa.hateblo.jp/entry/20150721/1437492671</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
