<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takuya_1st</author_name>
  <author_url>https://blog.hatena.ne.jp/takuya_1st/</author_url>
  <blog_title>それマグで！</blog_title>
  <blog_url>https://takuya-1st.hatenablog.jp/</blog_url>
  <categories>
    <anon>lua</anon>
  </categories>
  <description>配列の定義とループ local t = {} table.insert(t, &quot;a&quot;) table.insert(t, &quot;b&quot;) print(t[1]) for key,entry in pairs(t) do print(string.format(&quot;%s=&gt;%s&quot;, key, entry )) end 実行結果 a 1=&gt;a 2=&gt;b ポイント local xで変数定義 配列はテーブルで{}で定義。php の配列が近い 添字は[１]から for ループと pairs を一緒に使う printf のかわりに、string.format 配列の添字は１から始まります。[0]ではありません。t[…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2024%2F01%2F17%2F000000&quot; title=&quot; lua の配列のループに関するメモ - それマグで！&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>2024-01-17 00:00:00</published>
  <title> lua の配列のループに関するメモ</title>
  <type>rich</type>
  <url>https://takuya-1st.hatenablog.jp/entry/2024/01/17/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
