mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-14 23:41:30 +00:00
Program elements and resolve infrastructure; Stdlib ideas; Restructuring
This commit is contained in:
22
std/map.ts
Normal file
22
std/map.ts
Normal file
@ -0,0 +1,22 @@
|
||||
/// <reference path="../assembly.d.ts" />
|
||||
|
||||
@global()
|
||||
class Map<K,V> {
|
||||
private keys: K[];
|
||||
private values: V[];
|
||||
|
||||
constructor() {
|
||||
this.keys = [];
|
||||
this.values = [];
|
||||
}
|
||||
|
||||
has(key: K): bool {
|
||||
return false;
|
||||
}
|
||||
|
||||
set(key: K, value: V): void {
|
||||
}
|
||||
|
||||
clear(): void {
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user