What is a Function-local static in Swift?

I do not know for sure if that is what the article refers to, but you can define a function-local struct with a static property:

func f () {
    struct S {
        static var u: Int = 7
    }
}

See also:

2 Likes