Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let result = isLowerHalf(40)
- switch result {
- case .success(let value): print("Yes, \(value) is in the lower half!")
- case .error(let value): print("\(value) Not in the lower half.")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement