Caches function value for specific argument.
Namespace: CodeJamAssembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static Func<TArg, TResult> Memoize<TArg, TResult>( this Func<TArg, TResult> func, bool threadSafe = false )
VB
<ExtensionAttribute> Public Shared Function Memoize(Of TArg, TResult) ( func As Func(Of TArg, TResult), Optional threadSafe As Boolean = false ) As Func(Of TArg, TResult)
F#
[<ExtensionAttribute>] static member Memoize : func : Func<'TArg, 'TResult> * ?threadSafe : bool (* Defaults: let _threadSafe = defaultArg threadSafe false *) -> Func<'TArg, 'TResult>
Type: Func(TArg, TResult)Memoized function
In Visual Basic and C#, you can call this method as an instance method on any object of type Func(TArg, TResult). When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Algorithms ClassMemoize OverloadCodeJam Namespace
There was an error while loading. Please reload this page.