Created
July 31, 2015 01:59
-
-
Save mulatinho/04fe152c147858ee1bf6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AreUFuknWithMe { | |
let rake = 0.26; | |
var total: Double = 0; | |
let bills: [Double] = [ 1, 1.87, 2, 4.3, 6.57 ]; | |
init() { | |
var x = 0; | |
for (; x<4; x++) { | |
println("Duh") | |
} | |
} | |
func calcThisMadness() -> Double { | |
for i in 0..<bills.count { | |
self.total += bills[i] * rake; | |
} | |
return self.total | |
} | |
} | |
let obj = AreUFuknWithMe() | |
println(obj.calcThisMadness()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment