GoLang Ds\Set::remove

request it (338)
GoLang replacement for PHP's Ds\Set::remove [edit | history]



Do you know a GoLang replacement for PHP's Ds\Set::remove? Write it!

PHP Ds\Set::remove

PHP original manual for Ds\Set::remove [ show | php.net ]

Ds\Set::remove

(PECL ds >= 1.0.0)

Ds\Set::removeRemoves all given values from the set

Description

public void Ds\Set::remove ([ mixed $...values ] )

Removes all given values from the set, ignoring any that are not in the set.

Parameters

values

The values to remove.

Return Values

No value is returned.

Examples

Example #1 Ds\Set::remove() example

<?php
$set 
= new \Ds\Set([12345]);

$set->remove(1);            // Remove 1
$set->remove(12);         // Can't find 1, but remove 2
$set->remove(...[34]);    // Remove 3 and 4

var_dump($set);
?>

The above example will output something similar to:

object(Ds\Set)#1 (1) {
  [0]=>
  int(5)
}