FSharpAux


Memoization

Namespace: FSharpAux

Memoization pattern

Functions and values

Function or valueDescription
memoize(f)
Signature: f:('?8581 -> '?8582) -> '?8581 -> '?8582
Type parameters: '?8581, '?8582

Memoizes the return value of function f (Attenetion: not thread-safe)

memoizeP(f)
Signature: f:('a -> 'b) -> 'a -> 'b
Type parameters: 'a, 'b

Memoizes the return value of function f (thread-safe)

Fork me on GitHub