Skip to content

Tag Archives: PHP-ds_set

Set is the collection of unique values. The implementation of Ds\Set is similar to the Ds\Map which creates a hash table. The values of Ds\Set… Read More
The Ds\Set::diff() function is an inbuilt function in PHP which is used to create a set which contains the elements of the first set which… Read More
The Ds\Set::xor() function is an inbuilt function in PHP which is used to create a new set which contains the value either in the first… Read More
The Ds\Set::sorted() function is an inbuilt function in PHP which is used to return a sorted copy of given set. Syntax: Ds\Set public Ds\Set::sorted ([… Read More
The Ds\Set::filter() function is an inbuilt function in PHP which is used to create new set using filter function. Syntax: Ds\Set public Ds\Set::filter( $callback )… Read More
The Ds\Set::__construct() function is an inbuilt function in PHP which is used to create new instance of set. Syntax: Ds\Set::__construct( $values ) Parameters: This function… Read More
The Ds\Set::reduce() function is an inbuilt function in PHP which is used to reduce the set to a single value by applying operations using the… Read More
The Ds\Set::join() function is an inbuilt function in PHP which is used to join all values as string. Syntax: string public Ds\Set::join ([ string $glue… Read More
The Ds\Set::intersect() function is an inbuilt function in PHP which is used to create a new set which contains the intersection of two sets. Syntax:… Read More
The Ds\Set::merge() function is an inbuilt function in PHP which returns a set after adding all given values to the set. Syntax: Ds\Set public Ds\Set::merge… Read More
The Ds\Set::union() function is an inbuilt function in PHP which is used to create a new set which contains the union of two sets. Syntax:… Read More
The Ds\Set::slice() function is an inbuilt function in PHP which is used to return the sub-set of given range. Syntax: Ds\Set public Ds\Set::slice ( int… Read More
The Ds\Set::reverse() function of Ds\Set class in PHP is an inbuilt function which is used to reverse the order of elements present in the Set… Read More
The Ds\Set::isEmpty() function of Ds\Set class in PHP is an inbuilt function which is used to check whether a set is empty or not. If… Read More
The Ds\Set::get() function of Ds\Set class in PHP is an inbuilt function which is used to get a value from the Set instance. This function… Read More