Skip to content

utils.MiscUtils.Function.createMapBackedFunction

Christian d'Heureuse edited this page Jun 6, 2026 · 2 revisions

dsp-collection / utils/MiscUtils / createMapBackedFunction

Function: createMapBackedFunction()

function createMapBackedFunction<X, Y>(f): (x) => Y;

Returns a function that caches the values of the given univariate function.

Type Parameters

X

X

Y

Y

Parameters

f

(x) => Y

Returns

(x) => Y

Clone this wiki locally