<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tana-laevatein</author_name>
  <author_url>https://blog.hatena.ne.jp/tana-laevatein/</author_url>
  <blog_title>自称スーパーハッカーの適当なプログラミング雑記等</blog_title>
  <blog_url>https://tana-laevatein.hatenadiary.org/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>Pure</anon>
  </categories>
  <description>この方法はあまり使うべきではないと思いますが、Pure言語で手続き型言語的なプログラムを書く方法として書いておきます。 まず最初に、While関数の定義です。 while expr body = body () $$ while expr body if expr (); = () otherwise;普通に、「exprを実行してtrueだったらbodyを実行する」ということです。 exprとbodyは引数が一つの関数ですが、引数を与えているのは関数を実行させるためだけです。 次に、使い方の例として、「hogeという文字を10回出力する」というプログラムです。書き換えられる変数を使っています。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftana-laevatein.hatenadiary.org%2Fentry%2F20100718%2F1279409407&quot; title=&quot;Pure言語邪道テクニック? Whileを作る - 自称スーパーハッカーの適当なプログラミング雑記等&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>2010-07-18 08:30:07</published>
  <title>Pure言語邪道テクニック? Whileを作る</title>
  <type>rich</type>
  <url>https://tana-laevatein.hatenadiary.org/entry/20100718/1279409407</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
