Created
June 12, 2020 14:48
-
-
Save pavankataria/cdffc27e7ea7147e9ffa4eebc1704ac3 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
// In the flatmap method it would look something like this | |
switch self { | |
case .some(let unwrapped): | |
return transform(unwrappedValue) | |
case .none: | |
return nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment