๐ŸŽ
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
  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?

Was this helpful?