4 ms·
In Swift this could also be written as > case .NoAction(_, let v): return v Putting it at the beginning makes it apply to all the variables in the parens (alt
by yeldarb 12y ago
In Swift this could also be written as
> case .NoAction(_, let v): return v
Putting it at the beginning makes it apply to all the variables in the parens (although in this case they are ignoring the first one by using the underscore).
Using "let" makes it immutable; you can also use "var" there to make it a variable you can modify in the case body.