Created
June 12, 2020 14:10
-
-
Save pavankataria/616f5890a0233a98f35af65f4f46b410 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func processInput(_ stringNumber: String?) -> Int? { | |
guard let unwrappedStringNumber = stringNumber { | |
return nil | |
} | |
return Int(unwrappedStringNumber) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment