/**
 * sum : [Number] -> Number
 *
 * @since v0.10.0
 */
var sum = function sum (xs) {
  var i   = 0
    , len = xs.length
    , y

  for (; i < len; i++) {
    y += xs[i]
  }
  return y
}

export default sum

@@ -1,8 +1,63 @@
+import add from './add'%0Aimport reduce from './reduce'%0A%0A
 /**%0A * s
@@ -119,129 +119,22 @@
 m = 
-function sum (xs) %7B%0A  var i   = 0%0A    , len = xs.length%0A    , y%0A%0A  for (; i %3C len; i++) %7B%0A    y += xs%5Bi%5D%0A  %7D%0A  return y%0A%7D
+reduce(add, 0)
 %0A%0Aex

implement as reduce