<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>propella</author_name>
  <author_url>https://blog.hatena.ne.jp/propella/</author_url>
  <blog_title>言語ゲーム</blog_title>
  <blog_url>https://propella.hatenablog.com/</blog_url>
  <categories>
    <anon>言語</anon>
  </categories>
  <description>パターンマッチの意味について考えている。簡単なパターンマッチの例としては、 (x, y) = (1, 2) のように書くと、x に 1 が y に 2 が束縛されるというもの。Scala や F# やHaskell などの最近の言語ではパターンマッチを一般化して、データ構造のみならずどのような関数を使ってもパターンマッチが出来る。たとえば Haskell では、 $ ghci Prelude&gt; :set -XViewPatterns Prelude&gt; let half n = n / 2 Prelude&gt; let (half -&gt; n) = 10 in n 5.0 のように変数 n に束縛する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpropella.hatenablog.com%2Fentry%2F20110222%2Fp1&quot; title=&quot; salmacis: パターンマッチの意味(失敗) - 言語ゲーム&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>2011-02-22 00:00:00</published>
  <title> salmacis: パターンマッチの意味(失敗)</title>
  <type>rich</type>
  <url>https://propella.hatenablog.com/entry/20110222/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
