🍎
ios.dev
Ctrlk
ios.dev
  • 🍎ios.dev
  • ⭐features
  • 👔custom
  • 🐦Swift
    • 🎲math functions
    • 🔰scope
    • ➕operator
    • 🍀type
    • 🔰statement
    • 🔰flow control
    • 🔰Collections
    • 🔰Subscripts
    • 🔰Attributes
    • 🔰Pattern Matching
      • 🔴Sentence Patterns
        • ... as! ...
        • (... as? ...)?.method()
        • if let ... as?
        • if/guard case let
        • for case let ... where
        • switch case
        • switch case is ...
        • switch case let ... where
        • switch case let ... as
        • switch on other types
      • operator (~=)
      • enum case pattern
    • 🔰Exceptions
    • 🏛️Standard Library
    • 🔰Concurrency
    • 🔰File System
    • 🔰Networking
    • 🐞Debugging
    • 🔰Input/Output
    • 🔰Regex
    • 🔰Access Control
  • 🔰SwiftUI
  • 🎛️widgets
  • 🎁Data Structures
  • 🧠Algorithms
  • ⛱️Swift Playgrounds
  • 🥁Audio / Video
  • ⛔Errors
  • 附錄
    • 🧩Swift Package
    • 🔰Design Patterns
    • 🛠️Xcode
    • 💼Projects
    • ✅Testing System
    • Prototyping
    • 💡Tips
    • JSON
    • Terms
    • 其他
    • 雜記 📥
Powered by GitBook
On this page

Was this helpful?

  1. 🐦Swift
  2. 🔰Pattern Matching

🔴Sentence Patterns

... as! ...(... as? ...)?.method()if let ... as?if/guard case letfor case let ... whereswitch caseswitch case is ...switch case let ... whereswitch case let ... asswitch on other types
PreviousPattern MatchingNext... as! ...

Last updated 3 years ago

Was this helpful?