I'm trying to concatenate an array of string-backed enums into one single string. I have the following
enum MyEnumType1: String {
case Foo = "foo"
case Bar = "bar"
}
and this method to retrieve a string from an array of string-backed enums.
func getConcatenatedStringFromArray(array: [MyEnumType1]) -> String {
return array.joinWithSeparator(",")
}
I get a compile error stating an Ambiguous reference to it's member "joinWithSeparator". How what am i doing wrong?