Question 1/12: This code is valid Swift – true or false?
Hint: Click to show.
func holdClass(name: String, lesson: () -> Void) {
print("Welcome to \(name)!")
lesson()
print("Make sure your homework is done by next week.")
}
holdClass("Philosophy 101", lesson:) {
print("All we are is dust in the wind, dude.")
}
Link copied to your pasteboard.