{"version":"1.0","title":"Swift\u3067\u7279\u5b9a\u306e\u6587\u5b57\u5217\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53d6\u5f97\u3059\u308b","blog_title":"\u9162\u308d\u3050\uff01","published":"2019-06-26 08:53:39","categories":["\u958b\u767a","\u958b\u767a-iOS"],"height":"190","author_name":"ch3cooh393","width":"100%","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ch3cooh.jp%2Fentry%2Fios%2Fselect_index_from_array\" title=\"Swift\u3067\u7279\u5b9a\u306e\u6587\u5b57\u5217\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53d6\u5f97\u3059\u308b - \u9162\u308d\u3050\uff01\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u6587\u5b57\u5217\u3092\u683c\u7d0d\u3057\u305f\u914d\u5217\u304c\u3042\u308a\u3001Swift\u3092\u4f7f\u3063\u3066\u7279\u5b9a\u306e\u6587\u5b57\u5217\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u77e5\u308a\u305f\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 let list = [ \"\u677e\u5e73\", \"\u4e0a\u6749\", \"\u6728\u4e0b\", \"\u6d25\u7530\", \"\u5cf6\u6d25\", \"\u6728\u4e0b\", \"\u5c3c\u5b50\" ] let foundItems = list.enumerated() .filter({ $0.element == \"\u6728\u4e0b\" }) .map({ $0.offset }) 2\u30685\u304c\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002 \u95a2\u9023\u8a18\u4e8b \u540c\u3058\u51e6\u7406\u306eC#+LINQ\u7248\u306f\u3053\u3061\u3089\u3002 LINQ\u3092\u4f7f\u3063\u3066\u7279\u5b9a\u306e\u6587\u5b57\u5217\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53d6\u5f97\u3059\u308b - \u9162\u308d\u3050\uff01 \u3053\u306e\u307b\u304b\u306b\u3082iOS\u30a2\u30d7\u30ea\u958b\u767a\u3067\u898b\u3064\u3051\u305f\u30cd\u30bf\u3084\u60a9\u2026","blog_url":"https://blog.ch3cooh.jp/","url":"https://blog.ch3cooh.jp/entry/ios/select_index_from_array","author_url":"https://blog.hatena.ne.jp/ch3cooh393/","image_url":null,"provider_url":"https://hatena.blog","type":"rich"}