<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ku-ma-me</author_name>
  <author_url>https://blog.hatena.ne.jp/ku-ma-me/</author_url>
  <blog_title>まめめも</blog_title>
  <blog_url>https://mametter.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>現在のイテレータの回数を返す組み込み変数とかの方が嬉しそうです。 を試しに実装してみました。 3.times { p $# } %w(a b c).each {|x| p [x, $#] } $ ./ruby foo.rb 0 1 2 [&quot;a&quot;, 0] [&quot;b&quot;, 1] [&quot;c&quot;, 2]3.times do i = $# 3.times { p [i, $#] } end $ ./ruby foo.rb [0, 0] [0, 1] [0, 2] [1, 0] [1, 1] [1, 2] [2, 0] [2, 1] [2, 2]すごく便利そうなんだけどすごく邪悪な使い方ができそうで不安になります…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmametter.hatenablog.com%2Fentry%2F20071202%2Fp2&quot; title=&quot; Enumerator とブロックの省略の続き - まめめも&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>2007-12-02 00:00:01</published>
  <title> Enumerator とブロックの省略の続き</title>
  <type>rich</type>
  <url>https://mametter.hatenablog.com/entry/20071202/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
