<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pebble8888</author_name>
  <author_url>https://blog.hatena.ne.jp/pebble8888/</author_url>
  <blog_title>Pebble Coding</blog_title>
  <blog_url>https://pebble8888.hatenablog.com/</blog_url>
  <categories>
    <anon>swift</anon>
  </categories>
  <description>swift3ではC言語形式のループが廃止されます。 swift2.2の現時点では、deprecatedになっています。 書き換え方がわかりずらいのでメモ print(&quot;case to&quot;) for i in 0.stride(to:2, by:1) { print(i) } for i in 0..&lt;2 { print(i) } print(&quot;case through&quot;) for i in 0.stride(through:2, by:1) { print(i) } for i in 0...2 { print(i) } case to 0 1 0 1 case through 0 1 2 0 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpebble8888.hatenablog.com%2Fentry%2F2016%2F05%2F30%2F150608&quot; title=&quot;swift C言語形式のループの置き換え - Pebble Coding&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>2016-05-30 15:06:08</published>
  <title>swift C言語形式のループの置き換え</title>
  <type>rich</type>
  <url>https://pebble8888.hatenablog.com/entry/2016/05/30/150608</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
