code: function mapExpr(array, func) {
    var ret = [];
    for (var i = 0; i < array.length; ++i) {
      ret.push(func(array[i]));
    }
    return ret;
  }
docs: Returns an array that contains the return value of the given function applied to every element of the input array.