Advertisement
Guest User

Untitled

a guest
May 24th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. calculateLikes(50, newLikes: 1, operation:{$0 - $1})
  2. }
  3.  
  4. func calculateLikes(currentLikes:Int, newLikes: Int, operation: (Int, Int) -> Int) -> Int {
  5. return operation (currentLikes, newLikes)
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement