lang/memoize.js
/**
		 * Memoizes a function that accepts a single argument only. Furthermore,
		 * the parameter's toString function must return a unique value.
		 *
		 * @static
		 * @public
		 * @param {Function} fn - The function to memoize. This function should accept one parameters whose "toString" function outputs a unique value.
		 */
Memoizes a function that accepts a single argument only. Furthermore,
the parameter's toString function must return a unique value.

@static
@public
@param {Function} fn - The function to memoize. This function should accept one parameters whose "toString" function outputs a unique value.
Memoizes a function that accepts a single argument only . Furthermore the parameter ' s toString function must return a unique value . @static @public @param { Function } fn - The function to memoize . This function should accept one parameters whose " toString " function outputs a unique value .
simple(fn) {
			const cache = { };
			return (x) => {
				if (!cache.hasOwnProperty(x)) {
					cache[x] = fn(x);
				}
				return cache[x];
			};
		}
simple ( fn ) { const cache = { } ; return ( x ) => { if ( ! cache . hasOwnProperty ( x ) ) { cache [ x ] = fn ( x ) ; } return cache [ x ] ; } ; }
Memoizes a function that accepts a single argument only.
Memoizes a function that accepts a single argument only .