Filler implementation for std Set

This commit is contained in:
dcodeIO
2018-01-15 00:08:06 +01:00
parent 49d29fc9f2
commit f2ba4b4a76
13 changed files with 7637 additions and 3 deletions

4
std/portable.d.ts vendored
View File

@ -214,14 +214,16 @@ declare class Symbol {
declare class Set<T> {
constructor(entries?: T[]);
add(value: T): void;
has(value: T): bool;
add(value: T): void;
delete(value: T): bool;
clear(): void;
[Symbol.iterator](): Iterator<T>;
}
declare class Map<K,V> {
constructor(entries?: [K, V][]);
readonly size: i32;
set(key: K, value: V): void;
has(key: K): bool;
get(key: K): V | null;