mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
16 lines
354 B
Swift
16 lines
354 B
Swift
//
|
|
// RawRepresentable.swift
|
|
// Persephone
|
|
//
|
|
// Created by Daniel Barber on 2019/2/08.
|
|
// Copyright © 2019 Dan Barber. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension RawRepresentable where Self: Equatable {
|
|
func isOneOf<Options: Sequence>(_ options: Options) -> Bool where Options.Element == Self {
|
|
return options.contains(self)
|
|
}
|
|
}
|