<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>ListにListでマイナスはできないっぽい。 逆にMapにプラスは出来る。 複数のListの差分をとりたいときはdiffを使う。 scala&gt; List(1,2,3) - List(2,3) &lt;console&gt;:11: error: value - is not a member of List[Int] List(1,2,3) - List(2,3) ^ scala&gt; val a = Map(&quot;hoge&quot; -&gt; 1) a: scala.collection.immutable.Map[String,Int] = Map(hoge -&gt; 1) scala&gt; a + (&quot;fuga&quot; -&gt; 2)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2Fchotto_scala_20151103&quot; title=&quot;Scalaのちょっとしたやり取り MapやListに追加とか差分とか - by shigemk2&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-11-03 15:40:02</published>
  <title>Scalaのちょっとしたやり取り MapやListに追加とか差分とか</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/chotto_scala_20151103</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
