Mise à jour des headers des fichiers générés
Some checks failed
gitea-openium/resgen.swift/pipeline/head There was a failure building this commit

This commit is contained in:
2022-07-25 09:56:54 +02:00
parent 0775be88b0
commit efd04299a8
22 changed files with 49 additions and 35 deletions

View File

@@ -0,0 +1,15 @@
//
// SequenceExtension.swift
//
//
// Created by Thibaut Schmitt on 04/01/2022.
//
import Foundation
public extension Sequence where Iterator.Element: Hashable {
func unique() -> [Iterator.Element] {
var seen: [Iterator.Element: Bool] = [:]
return self.filter { seen.updateValue(true, forKey: $0) == nil }
}
}