Join Slack
Powered by
Swift has enums with raw values... you do somethin...
# announcements
i
iex
05/17/2018, 3:24 PM
Swift has enums with raw values... you do something like
Copy code
enum MyEnum: String { case foo = "foo" case bar = "bar" }
so the mapping is out of the box. Was wondering if there's a trick or something in Kotlin to get a similar behavior
2
Views
Open in Slack
Previous
Next