UNPKG

258 BJavaScriptView Raw
1/**
2 * This function "flips" its input about the integer -1.
3 *
4 * @param {Number} i The value to flip
5 *
6 * Reference: http://faculty.cse.tamu.edu/davis/publications.html
7 */
8export function csFlip (i) {
9 // flip the value
10 return -i - 2
11}