Friday, June 26, 2015

Swift ?? operator

The nil coalescing operator (a ?? b) unwraps an optional a if it contains a value, or returns a default value b if a is nil.

No comments:

Post a Comment