Typealias
The parameters are unreadable and boring
Instead of using , let us create a fake name for String
.
func listEmployees(enterEmployees: MyEmployees) {}
Array Type
let arrayOne: Array<String> = ["Bob", "Bobby"] // Generic Struct
let arrayTwo: [String] = ["Bob", "Bobby"]
Dictionary Type
Optional Type
You will learn more about
optionals
in Chapter 8: Advanced Enums.
That’s it. You’ve learned how fake.