<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dk521123</author_name>
  <author_url>https://blog.hatena.ne.jp/dk521123/</author_url>
  <blog_title>プログラム の超個人的なメモ</blog_title>
  <blog_url>https://dk521123.hatenablog.com/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>■ はじめに https://dk521123.hatenablog.com/entry/2023/03/09/000000 で、Scala の Option型をやったが、 今回は、Either型 について扱う。 目次 【１】Either型 １）Left/Rightの使い分け 【２】サンプル 例１：With getOrElse 例２：With foreach 例３：With map 【１】Either型 * LeftとRightの2つの値が存在するデータ型 １）Left/Rightの使い分け * 慣例としては、以下の通り。 + Right（右）：正しい値（「Right＝正しい」とかけているらし…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdk521123.hatenablog.com%2Fentry%2F2023%2F08%2F02%2F132315&quot; title=&quot;【Scala】Scala ～ 基本編 / Either型 ～ - プログラム の超個人的なメモ&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>2023-08-02 13:23:15</published>
  <title>【Scala】Scala ～ 基本編 / Either型 ～</title>
  <type>rich</type>
  <url>https://dk521123.hatenablog.com/entry/2023/08/02/132315</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
