Task

Compute the sum and product of an array of integers.




on sum (intList)
  res = 0
  repeat with v in intList
    res = res + v
  end repeat
  return res
end
 
on product (intList)
  res = 1
  repeat with v in intList
    res = res * v
  end repeat
  return res
end