A closure is a function combined with any captured variables.Function syntax has a way to specify all constants and variables it wants to capture from the surrounding context.Closure parameters are @nonescaping by default.@autoclosure attribute enables us to define an argument to a function that gets automatically wrapped within a closure.