Consider this simple enum:
enum myEnum: String {
case abc = "ABC"
case xyz = "XYZ"
}
I want to write a function that can print all cases in an enum. Like..
printEnumCases(myEnum)
Expected result:
ABC
XYZ
Note: I can able to iterate an enum like this. But I don't know how to pass the enum.