Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- calculateLikes(50, newLikes: 1, operation:{$0 - $1})
- }
- func calculateLikes(currentLikes:Int, newLikes: Int, operation: (Int, Int) -> Int) -> Int {
- return operation (currentLikes, newLikes)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement