ant_behavior/js/CircularBuffer.js
// n represents the initial length of the array, not a maximum
n represents the initial length of the array, not a maximum
n represents the initial length of the array not a maximum
function CircularBuffer(n, val) {
    this._array= new Array(n);
    this.length= 0;
    for (var i = 0; i < this._array.length; i++) {
        this._array[i] = val;
    };
}
function CircularBuffer ( n , val ) { this . _array = new Array ( n ) ; this . length = 0 ; for ( var i = 0 ; i < this . _array . length ; i ++ ) { this . _array [ i ] = val ; } ; }
n represents the initial length of the array, not a maximum
n represents the initial length of the array not a maximum