<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bitterharvest</author_name>
  <author_url>https://blog.hatena.ne.jp/bitterharvest/</author_url>
  <blog_title>bitterharvest’s diary</blog_title>
  <blog_url>https://bitterharvest.hatenablog.com/</blog_url>
  <categories>
    <anon>Haskellプログラミング講座（上級編：ゲーム）</anon>
  </categories>
  <description>５．スイッチ イベントの発生により、振舞いは変化する。例えば、ボールを床に落下させると、床にぶつかって、ボールは跳ね返ってくる。このような状況を記述するために、関数型リアクティブ・プログラミングではスイッチを用いる。スイッチの型シグネチャは次のようになる。 switch :: Behavior t a -&gt; Event t (Behavior t a) -&gt; Behavior t a ところで、キーボードからの入力inputを受けたときの新たな振舞いは次のように記すことができる。 box input = Behavior {stepBehavior = \ _ -&gt; イベントを受けての振舞いを…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbitterharvest.hatenablog.com%2Fentry%2F2015%2F06%2F14%2F063423&quot; title=&quot;Netwireでゲームを作成する（３） - bitterharvest’s diary&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-06-14 06:34:23</published>
  <title>Netwireでゲームを作成する（３）</title>
  <type>rich</type>
  <url>https://bitterharvest.hatenablog.com/entry/2015/06/14/063423</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
