JetBrains/kotlin — pull request #78 by zolotov (2012-06-15 22:57:53+00:00)
Title: Implement reduce and reduceRight functions

Implementation of reduce-functions.

Functions have been named according to fold-functions, i.e. functions ```reduce``` and ```reduceRight``` make reducing from left to right and from right to left respectively.

Implementation corresponds to Scala functions ```reduceLeft``` and ```reduceRight``` from [TraversableOnce](http://www.scala-lang.org/api/current/index.html#scala.collection.TraversableOnce)