var _ref, _ref2, _sum;

var result = (_ref = [5, 10], (_ref2 = _ref.map(x => x * 2), (_sum = _ref2.reduce((a, b) => a + b), _sum + 1)));
assert.equal(result, 31);

var inc = x => x + 1;

var double = x => x * 2;

var result2 = [4, 9].map(x => {
  var _ref3, _x;

  return _ref3 = (_x = x, inc(_x)), double(_ref3);
});
assert.deepEqual(result2, [10, 20]);
