Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created December 21, 2018 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/a7d679960a11f5156620e6bb89928ab4 to your computer and use it in GitHub Desktop.
Save fitomad/a7d679960a11f5156620e6bb89928ab4 to your computer and use it in GitHub Desktop.
let numbers = [ 1, 2, nil, 4, 5, nil, nil, 8, nil, 10 ]
for case let number? in numbers
{
print(number)
}
/**
1
2
4
5
8
10
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment