// // RawRepresentable.swift // VDS // // Created by Matt Bruce on 7/21/23. // import Foundation /// Helper method to check to see if you exist in a collection extension RawRepresentable where Self.RawValue: Equatable { public func isWithin(_ collection: [Self]) -> Bool { (collection.first(where: {$0 == self}) != nil) } }