<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lranran123</author_name>
  <author_url>https://blog.hatena.ne.jp/lranran123/</author_url>
  <blog_title>趣味プログラマがまれになんかしたことの記録</blog_title>
  <blog_url>https://lranran123.hatenadiary.org/</blog_url>
  <categories>
    <anon>Scala</anon>
    <anon>困った</anon>
  </categories>
  <description>こんなクラスを作ってみた scala&gt; case class K[A](l:List[A]) そしてこんな関数を作ってみる。しかし実行してみるとうまくいかない。 scala&gt; def returnK(a:A):K[A] = K[A](List(a)) returnK: (a: A)K[A] scala&gt; returnK(1) &lt;console&gt;:15: error: type mismatch; found : Int(1) required: A returnK(1) ~ この場合は、引数の型が予めわかってるので、以下のようにすればうまくいく。 scala&gt; def returnK[A](a…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flranran123.hatenadiary.org%2Fentry%2F20150514%2F1431562692&quot; title=&quot;共変とか反変とかわからないので躓いている - 趣味プログラマがまれになんかしたことの記録&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-05-14 09:18:12</published>
  <title>共変とか反変とかわからないので躓いている</title>
  <type>rich</type>
  <url>https://lranran123.hatenadiary.org/entry/20150514/1431562692</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
