significantly improved
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user