<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakaoka3</author_name>
  <author_url>https://blog.hatena.ne.jp/nakaoka3/</author_url>
  <blog_title>はてなブログ</blog_title>
  <blog_url>https://nakaoka3.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング言語</anon>
  </categories>
  <description>関数型プログラミングでは、型を組み合わせて作る型に直和型(sum type)と直積型(product type)が存在する。直和型と直積型のことを代数的データ型という。 『なっとく！関数型プログラミング』では、Scala、F#, Haskell で代数的データ型によるモデル化の例が紹介されていた。 残念なことに、どれも普段触っているプログラミング言語ではない。仕事で触る可能性があるのはバックエンドでPerl、バックエンド・フロントエンドがTypeScript，AndroidアプリでKotlinおよびJava, iOSアプリでSwiftだ。 なので、その中から Kotlinについて代数的データ型…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnakaoka3.hatenablog.com%2Fentry%2F2023%2F10%2F08%2F121600&quot; title=&quot;Kotlin で 代数的データ型(ADT) を使ってモデル化 - はてなブログ&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-10-08 12:16:00</published>
  <title>Kotlin で 代数的データ型(ADT) を使ってモデル化</title>
  <type>rich</type>
  <url>https://nakaoka3.hatenablog.com/entry/2023/10/08/121600</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
