From b0638707396ace88cfab11c5f011545e2ce32df3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 7 Mar 2019 05:06:58 +0100 Subject: [PATCH] Too much future: firstIndex is not available on Xcode 9.4- --- GRDB/Utils/OrderedDictionary.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GRDB/Utils/OrderedDictionary.swift b/GRDB/Utils/OrderedDictionary.swift index e0a5207ed..126c2f97c 100644 --- a/GRDB/Utils/OrderedDictionary.swift +++ b/GRDB/Utils/OrderedDictionary.swift @@ -73,7 +73,7 @@ struct OrderedDictionary { guard let value = dictionary.removeValue(forKey: key) else { return nil } - let index = keys.firstIndex { $0 == key }! + let index = keys.index { $0 == key }! keys.remove(at: index) return value }