hunk.code_window:     return i === -1 ? undefined : this._values[i];
     }
     set(key, value) {
       let i = this._keys.indexOf(key);
       if (i === -1) {
         this._keys.push(key);
         this._values.push(value);
         this.size++;
  
hunk.labels: keep keep keep replace replace keep keep keep keep
hunk.after_edit:   set(key, value): any {
       const i = this._keys.indexOf(key);
  
hunk.file_path: src/util/MapPolyfill.ts
hunk.type: replace
file: var RxOld = require('rx');
  var RxNew = require('../../../../index');
  
  module.exports = function (suite) {
    var predicate = function (value, i) {
      return value === 20;
    };
  
    var oldSinglePredicate = RxOld.Observable.range(0, 50, RxOld.Scheduler.immediate).single(predicate);
    var newSinglePredicate = RxNew.Observable.range(0, 50).single(predicate);
  
    function _next(x) { }
    function _error(e) { }
    function _complete() { }
    return suite
        .add('old single(predicate) with immediate scheduler', function () {
          oldSinglePredicate.subscribe(_next, _error, _complete);
        })
        .add('new single(predicate) with immediate scheduler', function () {
          newSinglePredicate.subscribe(_next, _error, _complete);
        });
  };