shorthand if-let syntax

Here’s the code if you want to experiment with it!

var userName: String?

if let userName {
    // `userName` is non-optional here
}
Previous
Previous

KeyPaths as closures

Next
Next

Array vs some Collection