Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let optional:Optional = 1
- let optionalReturned = optional.map({ (number: Int) -> Int in
- let result = 2 * number
- return result
- }).map({ (number: Int) -> Int in
- let result = number / 2
- return result
- })
- optional == optionalReturned
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement