Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CountableSet

class CountableSet<K> extends Set<K> {
constructor(values?: Iterable<K>);
_map: Map<K, number>;
 
add(key: K): this;
clear(): void;
delete(key: K): boolean;
getCount(key: K): number;
setCount(key: K, count: number): this;
}

§Type Parameters

§Extends

§
Set<K>
[src]

§Constructors

§
new CountableSet(values?: Iterable<K>)
[src]

§Properties

§
_map: Map<K, number>
[src]

§Methods

§
add(key: K): this
[src]
§
clear(): void
[src]
§
delete(key: K): boolean
[src]
§
getCount(key: K): number
[src]
§
setCount(key: K, count: number): this
[src]