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 3 years ago
Was this helpful?