<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tokizuoh</author_name>
  <author_url>https://blog.hatena.ne.jp/tokizuoh/</author_url>
  <blog_title>カルボナーラ街道</blog_title>
  <blog_url>https://tokizuoh.hatenablog.com/</blog_url>
  <categories>
    <anon>Swift</anon>
  </categories>
  <description>2022/06/24追記： 参照しているcontainsが違った。本記事の最終段落に追記。 ドキュメント読んでたら気になったのでメモ。 開発環境 &gt; swift --version swift-driver version: 1.55.1 Apple Swift version 5.7 (swiftlang-5.7.0.113.202 clang-1400.0.16.2) Target: x86_64-apple-macosx13.0 モチベーション ある数に対して、その数がある配列のインデックスとして存在するかを確認するときは以下のようにしていた。 let numbers = [1, 2, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftokizuoh.hatenablog.com%2Fentry%2F2022%2F06%2F24%2F002913&quot; title=&quot;Swiftで配列のインデックスの存在確認はindices.contains()よりendIndexを使う方がより良い？ - カルボナーラ街道&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>2022-06-24 00:29:13</published>
  <title>Swiftで配列のインデックスの存在確認はindices.contains()よりendIndexを使う方がより良い？</title>
  <type>rich</type>
  <url>https://tokizuoh.hatenablog.com/entry/2022/06/24/002913</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
