-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBasic
More file actions
42 lines (31 loc) · 978 Bytes
/
Basic
File metadata and controls
42 lines (31 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$$$ =>
Be updated with latest stable versions and changes in latest versions
=> Latest MacOS version
macOS 11(Big Sur)
<<https://support.apple.com/en-in/HT201260>>
=> Latest XCode version
XCode 13.0
<<https://en.wikipedia.org/wiki/Xcode>>
=> Latest IOS version
IOS 15.0
<<https://en.wikipedia.org/wiki/IOS_version_history>>
=> Latest Swift version
Swift 5.5
<<https://en.wikipedia.org/wiki/Swift_(programming_language)>>
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ -End- $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$ =>
What is the use of the dump function? Explain with example.
>>Dump function is used to print the content of the object
struct Employee {
var id:Int
var name:String
init(id:Int, name:String) {
self.id = id
self.name = name
}
}
let emp1 = Employee(id: 10, name: "Srikanth")
let emp2 = Employee(id: 10, name: "Srikanth")
let empArr:[Employee] = [emp1,emp2]
dump(empArr)