whole_func_string: function iterateElements(array) {
    var index = 0;
    var rv = {};
    rv[Symbol.iterator] = {
        next() {
          if (index < array.length)
            return {value: array[index++], done: false};
          return {done: true};
        }
      }
    }
func_code_string: function iterateElements(array) {
    var index = 0;
    var rv = {};
    rv[Symbol.iterator] = {
        next() {
          if (index < array.length)
            return {value: array[index++], done: false};
          return {done: true};
        }
      }
    }
func_documentation_string: Example 1. Writing an iterator over an array