News for hackers. Stuff that matters.
Re:Pinboard - antisocial bookmarking by wooby on Tuesday July 14, 2009 @01:23AM (#703148)
How much they've made so far, with scala:

  scala> def income(n_users:Int) = (1 to n_users) map(i => (i-1)*.001) reduceLeft(_+_)
 income: (Int)Double

  scala> income(2901)
 res0: Double = 4206.45
Re:Pinboard - antisocial bookmarking by swolchok on Tuesday July 14, 2009 @03:39AM (#703275)
You need to round the intermediate values down like they seem to be doing.