Please, can anyone explain why this works?
func howMany() -> Int {return 11}
guard case let output = howMany(), output > 10 else {return}
I understand how guard/if/while/for case let works with enums. Pattern matching is great. But here is no enum and this works too. What is the language construct that allows that?
(This example was taken from Matt Neuburg's book.)