Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func omitArgumentLabel(_ word: String) {
- print(word)
- }
- omitArgumentLabel("This function has no argument label.")
- //Output: This function has no argument label.
- func defaultArgumentLabel(number: Int){
- print(number)
- }
- defaultArgumentLabel(number: 3)
- //Output: 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement