code: func (c *Container) runToArray() {
  	statsHit("runToArray")
  	runs := c.runs()
  	c.typ = containerArray
  	c.mapped = false
  
  	// return early if empty
  	if c.n == 0 {
  		c.setArray(nil)
  		return
  	}
  
  	array := make([]uint16, c.n)
  	n := int32(0)
  	for _, r := range runs {
  		for v := int(r.start); v <= int(r.last); v++ {
  			array[n] = uint16(v)
  			n++
  		}
  	}
  	if roaringParanoia {
  		if n != c.n {
  			panic("run has fewer bits set than container.n")
  		}
  	}
  	c.setArray(array)
  }
docs: // runToArray converts from RLE format to array format.