๐ฐclosure
๐ง ๆฝๅทฅไธญ
Swift โฉ basic types โฉ closure
The parameters in closure expression canโt have a default value.
Closures take one of three forms:
Global functions๏ผ have a name and donโt capture any values.
Nested functions๏ผ have a name and can capture values from their enclosing function.
closure expression๏ผ unnamed, can capture values from their surrounding context.
๐ see๏ผClosures
Last updated