Using `if let` to check for equality

Yoda must have hit his head, though. if let 42 = x {} "if let forty-two equals x"

4 Likes