Zadać Swift
defer {
print("This will always be printed last")
}
print("Hello, World!")
// Output:
// Hello, World!
// This will always be printed last
Passionate Amoeba
defer {
print("This will always be printed last")
}
print("Hello, World!")
// Output:
// Hello, World!
// This will always be printed last