Skip to content

Tag Archives: PHP-ds_sequence

A Sequence is used to arrange the values in a single and linear dimension way. In some languages, the sequence refers to the List. The… Read More
The Ds\Sequence::reversed() function is an inbuilt function in PHP which is used to return the reverse copy of sequence element. Syntax: Ds\Sequence abstract public Ds\Sequence::reversed… Read More
The Ds\Sequence::rotate() function is an inbuilt function in PHP which is used to rotate the sequence element by a given number of rotations. Syntax: void… Read More
The Ds\Sequence::set() function is an inbuilt function in PHP which is used to updates a value at a given index. Syntax: void abstract public Ds\Sequence::set… Read More
The Ds\Sequence::reverse() function is an inbuilt function in PHP which is used to reverse the sequence in-place. Syntax: void abstract public Ds\Sequence::reverse ( void )… Read More
The Ds\Sequence::remove() function is an inbuilt function in PHP which is used to remove and return a value by index. Syntax: mixed abstract public Ds\Sequence::remove… Read More
The Ds\Sequence::reduce() function is an inbuilt function in PHP which is used to reduce the sequence to a single value using a callback function. Syntax:… Read More
The Ds\Sequence::capacity() function is an inbuilt function in PHP which is used to returns the current capacity of sequence. Syntax: int abstract public Ds\Sequence::capacity (… Read More
The Ds\Sequence::apply() function is an inbuilt function in PHP which is used to updates all value of sequence by applying a callback function to each… Read More
The Ds\Sequence::map() function is an inbuilt function in PHP which returns the result after applying callback function to each value. Syntax: Ds\Sequence abstract public Ds\Sequence::map(… Read More
The Ds\Sequence::last() function is an inbuilt function in PHP which is used to return the last element from the sequence. Syntax: mixed abstract public Ds\Sequence::last(… Read More