<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hyoromo</author_name>
  <author_url>https://blog.hatena.ne.jp/hyoromo/</author_url>
  <blog_title>hyoromoのブログ</blog_title>
  <blog_url>https://hyoromo.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby1.8.7</anon>
  </categories>
  <description>今回は配列関係の練習問題。 (1)「1から100までの整数を含む配列を作れ」 a = Array.new(100) { |i| i+1 } p a これは簡単。 公式解答はこちら。 ary = [] 100.times{|i| ary[i] = i + 1 } (2)「(1)の配列の要素を全て100倍にせよ」 a = Array.new(100) { |i| i+1 } b = a.collect { |i| i * 100 } p b まだ大丈夫。 公式解答はこちら。 # 配列を作成する ary = (1..100).to_a # 配列の全ての要素を100倍した値を含む新しい配列を作る ar…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhyoromo.hatenablog.com%2Fentry%2F20081116%2F1226851196&quot; title=&quot;たのしいRuby 第11章 練習問題(P.211) - hyoromoのブログ&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>2008-11-16 00:59:56</published>
  <title>たのしいRuby 第11章 練習問題(P.211)</title>
  <type>rich</type>
  <url>https://hyoromo.hatenablog.com/entry/20081116/1226851196</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
