significantly improved

This commit is contained in:
2018-04-26 16:23:12 +02:00
parent 89dff9779a
commit 0eede1309f
5 changed files with 745 additions and 22 deletions

View File

@ -27,7 +27,7 @@ export class Queue<T> extends Events.EventEmitter {
}
deq() : T {
var x : T = this.peek()
let x : T = this.peek()
this.q.shift()
return x
@ -38,7 +38,7 @@ export class Queue<T> extends Events.EventEmitter {
throw new Error("queue is empty")
}
var x : T = this.q[0]
let x : T = this.q[0]
return x
}