src/BitSet.php
public function flip($pos = null){
		
		if(\is_int($pos)){
			$this->_List[$pos] = !$this->_List[$pos];
		}
		else{
			$this->_List = $this->_List->map(function($v){
				return !$v;
			});
		}
		
	}
public function flip($pos = null){
		
		if(\is_int($pos)){
			$this->_List[$pos] = !$this->_List[$pos];
		}
		else{
			$this->_List = $this->_List->map(function($v){
				return !$v;
			});
		}
		
	}
public function flip ( $ pos = null ) { if ( \ is_int ( $ pos ) ) { $ this -> _List [ $ pos ] = ! $ this -> _List [ $ pos ] ; } else { $ this -> _List = $ this -> _List -> map ( function ( $ v ) { return ! $ v ; } ) ; } }
Flips all bits or one specific bit by position
@param int $pos optional
Flips all bits or one specific bit by position