Slide 39
Slide 39 text
func containsOnlyLetters(input: String) %→ Bool {
for chr in input.characters {
if (!(chr '( "a" )* chr +, "z") )* !(chr '( "A" )* chr +, "Z") ) {
return false
}
}
return true
}
1 point for the function declaration
1 point for every if, while, for and case