<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uehaj</author_name>
  <author_url>https://blog.hatena.ne.jp/uehaj/</author_url>
  <blog_title>uehaj's blog </blog_title>
  <blog_url>https://uehaj.hatenablog.com/</blog_url>
  <categories>
    <anon>Elm</anon>
    <anon>Funcional</anon>
    <anon>Hakell</anon>
    <anon>FunctionalFRP</anon>
    <anon>ArrowizedFRP</anon>
  </categories>
  <description>import Window import Debug (log) -- 旧速度vと、現在位置xから、新しい速度を求める。(はじっこだったら速度を反転する) newv : Int -&gt; Int -&gt; Int newv v x = if (x&lt;= -10 || 10&lt;=x) then -v else v -- 状態を表わす(現在位置、速度)のタプルに対して、次の状態をシグナル(fps 20)のタイミングで累積的に計算しなおすということを繰り返す。初期状態は(0,1)。結果得られるのは、(現在位置,現在の速度)を表現するシグナルである。 pos = foldp (\it (x,v) -&gt; let n…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fuehaj.hatenablog.com%2Fentry%2F2014%2F07%2F19%2F004359&quot; title=&quot;elmでやってみるシリーズ2: ●を往復させる - uehaj&amp;#39;s blog &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-07-19 00:43:59</published>
  <title>elmでやってみるシリーズ2: ●を往復させる</title>
  <type>rich</type>
  <url>https://uehaj.hatenablog.com/entry/2014/07/19/004359</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
