2007-12-12から1日間の記事一覧
JavaのBitSetみたいなのが必要だったので書いてみました。 function BitSet( defaultValue ) { this.value = defaultValue ? defaultValue : 0 ; } BitSet.prototype = { on: function( index ) { if ( index < 0 || index >= 32 ) { throw "out of bounds."…
JavaのBitSetみたいなのが必要だったので書いてみました。 function BitSet( defaultValue ) { this.value = defaultValue ? defaultValue : 0 ; } BitSet.prototype = { on: function( index ) { if ( index < 0 || index >= 32 ) { throw "out of bounds."…