Pinq\Iterators\IOrderedMap::remove PHP Метод

remove() публичный Метод

Removes the element (if exists) with the supplied key.
public remove ( mixed $key ) : boolean
$key mixed
Результат boolean Whether the key was succefully remove or false if does not exist
    public function remove($key);

Usage Example

Пример #1
0
 /**
  * @dataProvider orderedMaps
  */
 public function testThatOrderedMapGetReturnsNullForRemovedKeys(IOrderedMap $orderedMap)
 {
     foreach ($this->orderedMapKeyValues() as $key) {
         $orderedMap->set($key, true);
         $orderedMap->remove($key);
         $this->assertNull($orderedMap->get($key), 'The ordered map should return null for the removed key');
     }
 }