<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>E_Mattsan</author_name>
  <author_url>https://blog.hatena.ne.jp/E_Mattsan/</author_url>
  <blog_title>エンジニアのソフトウェア的愛情</blog_title>
  <blog_url>https://blog.emattsan.org/</blog_url>
  <categories>
    <anon>Prolog</anon>
  </categories>
  <description>rotate という操作があります。要素を回転させる操作です。 いろいろな場面で Prolog の強力さを目の当たりにするのですが、今回はこの rotate という操作について見ていきます。 なお rotate させるばあい、方向として右と左がありますが、考え方は同じなのでここでは右方向だけ考えることにします。 回せるだけ回す たとえば次のような配列に対して、 [1, 2, 3] 要素を右にひとつ回すと、次のようになります。 [3, 1, 2] つまり一番右端の要素が一番左側に移動します。 [配列の左側, 配列の右側]という配列が、 [配列の右側, 配列の左側]という配列に変換されたことを意味…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F20151029%2F1446118180&quot; title=&quot; 右に回す、Prologで - エンジニアのソフトウェア的愛情&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-10-29 20:29:40</published>
  <title> 右に回す、Prologで</title>
  <type>rich</type>
  <url>https://blog.emattsan.org/entry/20151029/1446118180</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
