Created
August 24, 2015 05:44
-
-
Save macbaszii/b649b39538f13206fa49 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 plusThree(addend: Int) -> Int { | |
| return addend + 3 | |
| } | |
| Optional.Some(2).map(plusThree) | |
| // => .Some(5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment