operator (~=)
enum case pattern
Erica โฉ Challenge: Filtering associated value enumeration arrays
Austin Zheng โฉ Custom pattern matching in Swift - custom array matching
Ole โฉ Pattern Matching in Swift - generic ~= operator
AliSoftware โฉ Pattern Matching
Part 1: switch, enums & where clauses
Part 2: tuples, ranges & types
Part 3: Custom pattern matching & syntactic sugar
Part 4: if case, guard case, for case โญ๏ธ
Sundell โฉ
pattern matching articles
Pattern matching in Swift โฉ
Under the hood with custom matching - pattern match against any kind of Equatable Errors.
Equatable
Swift Ref โฉ Patterns โฉ wildcard-pattern, identifier-pattern, value-binding-pattern, tuple-pattern, enum-case-pattern, optional-pattern, type-casting-pattern, expression-pattern.
operator (~=) - pattern matching operator
Mirror
Mirror.handleChildren() - use pattern matching on mirror's children.
Last updated 2 years ago