Skip to content

Instantly share code, notes, and snippets.

@mulatinho
Created July 31, 2015 01:59
Show Gist options
  • Save mulatinho/04fe152c147858ee1bf6 to your computer and use it in GitHub Desktop.
Save mulatinho/04fe152c147858ee1bf6 to your computer and use it in GitHub Desktop.
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