module wdCb { export class Queue extends List{ public static create(children = []){ var obj = new this(>children); return obj; } constructor(children:Array = []){ super(); this.children = children; } get front(){ return this.children[this.children.length - 1]; } get rear(){ return this.children[0]; } public push(element:T){ this.children.unshift(element); } public pop(){ return this.children.pop(); } public clear(){ this.removeAllChildren(); } } }