Explore tens of thousands of sets crafted by our community.
Swift Fundamental Data Types
10
Flashcards
0/10
Set
A collection of unique values of the same type. Example: Set<String> = ["apple", "orange"]
Double
A double-precision floating-point type. Example: Double = 3.14159
Float
A single-precision floating-point type. Example: Float = -0.12345
Character
A single-character string literal. Example: Character = 'A'
Int
A signed integer type. Example: Int = 42
Bool
A Boolean value, true or false. Example: Bool = true
String
A sequence of characters. Example: String = "Hello, Swift!"
UInt
An unsigned integer type. Example: UInt = 88
Array
An ordered collection of elements. Example: Array<Int> = [1, 2, 3]
Dictionary
A collection of key-value pairs. Example: Dictionary<String, Int> = ["age": 25]
© Hypatia.Tech. 2024 All rights reserved.