<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anthrgrnwrld</author_name>
  <author_url>https://blog.hatena.ne.jp/anthrgrnwrld/</author_url>
  <blog_title>MILLEN BOX</blog_title>
  <blog_url>https://anthrgrnwrld.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>swiftにはzipという関数で、二つの配列を組み合わせた構造体(のようなもの)を作成することが出来ます。 下の例のコードでは、ランダムなInt型の配列array1とString型の配列array2を組み合わせ、zippedArrayという組み合わせを作成したものです。 let array1 = [3,78,5,8,6,7,2] let array2 = [&quot;s&quot;, &quot;w&quot;, &quot;i&quot;, &quot;f&quot;, &quot;t&quot;] var zippedArray = zip(array1, array2) 全組み合わせをprintしてみましょう。 コードは以下です。 zippedArray.forEach { prin…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanthrgrnwrld.hatenablog.com%2Fentry%2F2016%2F08%2F02%2F124930&quot; title=&quot;swiftのzip関数で二つの配列の組み合わせを作成する [swift2.2] [Zip2Sequence] - MILLEN BOX&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-08-02 12:49:30</published>
  <title>swiftのzip関数で二つの配列の組み合わせを作成する [swift2.2] [Zip2Sequence]</title>
  <type>rich</type>
  <url>https://anthrgrnwrld.hatenablog.com/entry/2016/08/02/124930</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
