I'm trying to get the first letter of a string and store it in another variable which is a string.
So far I have
func getFirstChar(deckName : String) -> String {
return String(deckName.first)
}
From what I understand from googling this should work, but it doesn't compile with the error
No exact matches in call to initializer