Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
5 Cards in this Set
- Front
- Back
Why will this code not compile? func someFunction(a: Int) -> Bool { return a } |
The value we're returning does not match the return type. |
|
What keyword do we use to output a value from a function? |
return |
|
What keyword do we use to create a function? |
func |
|
What is wrong with the function declaration below? func someFunction(Int, Int) -> Int { return 1 } |
Function parameters (Int, Int) require names |
|
the modulo operator is also known as the... |
remainder operator % |