Created
June 5, 2020 09:35
-
-
Save Bellaposa/71ff94acd31e5506fb86f4a30301c019 to your computer and use it in GitHub Desktop.
Contains Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
infix operator ⊂ | |
public func ⊂ <Element: Equatable, Root, Value: KeyPath<Root, Element>>(keyPath: Value, value: Element) -> Comparison<Root> { | |
Comparison(keyPath, .contains, value) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment