@softvisio/core
Version:
Softisio core
42 lines (33 loc) • 728 B
JavaScript
import List from "#lib/data-structures/list";
export default class Queue {
constructor () {
this.
}
// properties
get length () {
return this.
}
// public
push ( ...values ) {
for ( const value of values ) {
this.
}
}
shift () {
return this.
}
clear () {
return this.
}
* [ Symbol.iterator ] () {
for ( const entry of this.
yield entry.value;
}
}
* reverse () {
for ( const entry of this.
yield entry.value;
}
}
}