design: added selector interface

This commit is contained in:
Misko Hevery
2014-10-02 20:39:27 -07:00
parent 33af1d0b39
commit fd0c2d8063
5 changed files with 47 additions and 2 deletions

View File

@ -1,8 +1,7 @@
library facade.collection;
import 'dart:collection' show HashMap;
export 'dart:collection' show Map;
export 'dart:core' show List;
export 'dart:core' show Map, List, Set;
class MapWrapper {
static HashMap create() => new HashMap();

View File

@ -1,5 +1,7 @@
export var List = window.Array;
export var Map = window.Map;
export var Set = window.Set;
export class MapWrapper {
static create():HashMap { return new HashMap(); }
static get(m, k) { return m[k]; }