<?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>Eitherによるエラー処理 - エラー処理による分岐を減らす | Scala Cookbook Right型の場合はmap内の関数を適用し、Leftの型の場合はmapの処理を無視してLeftの内容（この場合はエラー情報を）をそのまま返す。 環境は、Mac OSXと、2.10.3 scala&gt; def parseInt(s:String) : Either[Exception, Int] = | try Right(s.toInt) catch { case e:Exception =&gt; Left(e) } parseInt: (s: String)Either[Exception,Int] …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F2014%2F06%2F30%2FScala%25E3%2581%25AEEither%25E5%259E%258B_Left_vs_Right&quot; title=&quot;ScalaのEither型 Left vs Right - 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>2014-06-30 22:33:38</published>
  <title>ScalaのEither型 Left vs Right</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/2014/06/30/Scala%E3%81%AEEither%E5%9E%8B_Left_vs_Right</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
