mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/*---------------------------------------------------------
|
||||
* Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
*--------------------------------------------------------*/
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
export const memoizeLast = <A, T>(fn: (args: A) => T): ((args: A) => T) => {
|
||||
let last: { arg: A; result: T } | undefined;
|
||||
|
||||
Reference in New Issue
Block a user