csFlip.js 355 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.csFlip = csFlip;
  6. /**
  7. * This function "flips" its input about the integer -1.
  8. *
  9. * @param {Number} i The value to flip
  10. *
  11. * Reference: http://faculty.cse.tamu.edu/davis/publications.html
  12. */
  13. function csFlip(i) {
  14. // flip the value
  15. return -i - 2;
  16. }