Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. let result = isLowerHalf(40)
  2.  
  3. switch result {
  4. case .success(let value): print("Yes, \(value) is in the lower half!")
  5. case .error(let value): print("\(value) Not in the lower half.")
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement