In Swift you can do `let foo = MyEnum(rawValue: 20...
# getting-started
s
In Swift you can do
let foo = MyEnum(rawValue: 20)
which would return a
MyEnum?
which is
nil
if no value exists for the given raw value.