-
Notifications
You must be signed in to change notification settings - Fork 10
Swift 2 notes
Michael Hulse edited this page Feb 13, 2016
·
14 revisions
- Booleans:
True
orFalse
- Integers: Positive and negative whole numbers
- Characters: Single ASCII symbol or letter
- Floats: Decimal numbers.
- Strings: Characters in sequence
- Lists: Mutable sequence of individual elements:
[3, 1, 4, 9, 2]
,["Apple", "Banana", "Caramel"]
,[true, false, true, true]
(values are typically of the same data type) - Enumerations: Immutable sets of data values (values are the same data type)
- Itemizations: Combination of different data types to form a finite set:
[false, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, true]