Sha256: d09546c6b552bd1c16025478c548a7ddb873935929deab6a01ec5132730240b7

Contents?: true

Size: 601 Bytes

Versions: 4

Compression:

Stored size: 601 Bytes

Contents

(function(){
  var _a, _b, _c, _d, _e, _f, _g, food, lunch, roid, roid2;
  // Eat lunch.
  lunch = (function() {
    _a = []; _b = ['toast', 'cheese', 'wine'];
    for (_c = 0; _c < _b.length; _c++) {
      food = _b[_c];
      _a.push(eat(food));
    }
    return _a;
  }).call(this);
  // Naive collision detection.
  _d = asteroids;
  for (_e = 0; _e < _d.length; _e++) {
    roid = _d[_e];
    _f = asteroids;
    for (_g = 0; _g < _f.length; _g++) {
      roid2 = _f[_g];
      if (roid !== roid2) {
        if (roid.overlaps(roid2)) {
          roid.explode();
        }
      }
    }
  }
})();

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
haml-more-0.5.1 vendor/coffee-script/documentation/js/array_comprehensions.js
haml-more-0.5.0 vendor/coffee-script/documentation/js/array_comprehensions.js
haml-more-0.4.0 vendor/coffee-script/documentation/js/array_comprehensions.js
haml-more-0.4.0.d vendor/coffee-script/documentation/js/array_comprehensions.js