I am analyzing analyzing some third party code and there is a "lazy" var statement that looks like this, and I would like to understand what the parenthesis are doing after the "computed property" curly braces:
lazy var defaults:NSUserDefaults = {
return .standardUserDefaults()
}()
The "return .standardUserDefaults()" is returning the NSUserDefaults instance object, so why add a () after the right curly brace?
thanks