(last int)
| 37 | } |
| 38 | |
| 39 | func (t *table) extendArray(last int) { |
| 40 | t.array = append(t.array, make([]value, last-len(t.array))...) |
| 41 | for k, v := range t.hash { |
| 42 | if f, ok := k.(float64); ok { |
| 43 | if i := int(f); float64(i) == f { |
| 44 | if 0 < i && i <= len(t.array) { |
| 45 | t.array[i-1] = v |
| 46 | delete(t.hash, k) |
| 47 | } |
| 48 | } |
| 49 | } |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | func (t *table) atInt(k int) value { |
| 54 | if 0 < k && k <= len(t.array) { |
no outgoing calls
no test coverage detected