@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
18 lines (17 loc) • 459 B
TypeScript
/**
* A map type that accepts an arbitrary object as key.
* {@link JSON.stringify} is used to create the actual key for the underlying map.
* This can be helpful if value equality is desired.
*/
export declare class ObjectMap<K, V> {
private readonly internal;
private makeKey;
/**
* Sets a value for a given key.
*/
set(key: K, v: V): void;
/**
* Return the value for the key.
*/
get(key: K): V | undefined;
}