is-even and is-odd recursion
/* * is-even <https://github.com/jonschlinkert/is-even> * * Copyright (c) 2015-2017, Jon Schlinkert. * Released under the MIT License. */ 'use strict'; var isOdd = require('is-odd'); module.exports = function isEven(i) { return !isOdd(i); }; /* * is-odd <https://github.com/jonschlinkert/is-odd> * * Copyright (c) 2015-2017, Jon Schlinkert. * Released under the MIT License. */ 'use strict'; var isEven = require('is-even'); module.exports = function isOdd(i) { return !isEven(i); };
Two code panels define `is-even` in terms of `is-odd`, and `is-odd` in terms of `is-even`, creating a circular dependency. The joke is that neither function has an independent definition, parodying confusing or self-referential programming logic.
- @gentoomemes / 7771 2023-12-02
- Type
- image
- Size
- 800×538 · 40.1 KiB
- Mood
- absurd, sarcastic
- Language
- en
- Added