Last active
February 7, 2025 07:10
-
-
Save 0xdea110c8/f9f3394cd445fc8db04f1916b0f949c5 to your computer and use it in GitHub Desktop.
Custom operators
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 => : ComparisonPrecedence | |
public func =><`Type`>(lhs: `Type`, rhs: Set<`Type`>) -> Bool { | |
return rhs.contains(lhs) | |
} | |
infix operator !=> : ComparisonPrecedence | |
public func !=><`Type`>(lhs: `Type`, rhs: Set<`Type`>) -> Bool { | |
return !rhs.contains(lhs) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment