title: How to find the sum of cells in go?
body: <p>Implement the <code>function SumCells(cells)</code>.</p>
  <p>Input: an arbitrary collection cells of Cell variables.</p>
  <p>Return: a single Cell variable corresponding to summing corresponding elements in every cell in cells.
  <a href="https://i.stack.imgur.com/4OeJD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4OeJD.png" alt="enter image description here" /></a></p>
  <pre><code>type Cell [2]float64
  
  func SumCells(cells ...Cell) Cell {
      sum := 0.0
      var c Cell
      c = append(c, cells)
      for rowIndex, row := range cells { // loop through rows
          for cellIndex := range row {
          sum += [rowIndex][cellIndex]
          }
      }
      return c
  } 
  </code></pre>
  <p>Could someone explain how to write this function?</p>