Login
From:
Nil Coalescing
(Uncensored)
subscribe
Pattern matching for custom types in Swift
https://nilcoalescing.com/blog/PatternMatchingForCustomTypesInSwift
links
backlinks
Roast topics
Find topics
Find it!
Define custom logic for matching different types of data in switch cases by overloading the Swift pattern matching operator (~=).