// using {}
display(greet:{
print("Hello World!")
}
// without using {}
display(greet: print("Hello World!"))
// define a function with automatic closure
func display(greet: @autoclosure () -> ()) {
greet()
}
// pass closure without {}
display(greet: print("Hello World!"))