import reduce from './reduce'

/**
 * fromPairs : [[k, v]] -> {k:v}
 *
 * @since v0.7.0
 */
export default reduce(function fromPairs (acc, x) {
  acc[x[0]] = x[1]
  return acc
}, {})

@@ -1,35 +1,4 @@
-import reduce from './reduce'%0A%0A
 /**%0A
@@ -73,15 +73,8 @@
 ult 
-reduce(
 func
@@ -93,36 +93,128 @@
 rs (
-acc, x
+kvs) %7B%0A  var i   = 0%0A    , len = kvs.length%0A    , acc = %7B%7D%0A%0A  for (; i %3C len; i++
 ) %7B%0A
+  
   acc%5B
-x
+kvs%5Bi%5D
 %5B0%5D%5D = 
-x%5B1%5D
+kvs%5Bi%5D%5B1%5D%0A  %7D%0A
 %0A  r
@@ -228,10 +228,6 @@
 cc%0A%7D
-, %7B%7D)
+%0A
 %0A

fix accumulator being mutated on subsequent calls