Results of 1 - 10 of about 81 for deque (0.001 sec.)
- The Deque class 8742
- « Ds\Vector::unshift Ds\Deque::allocate » PHP Manual Data Structures The Deque class 検索 The Deque class (PECL ds >= 1.0.0) はじめに A Deque (pronounced “deck”) is a sequence of values in a contiguous buffer that grows and shrinks automati
... and unshift() are all O(1). Weaknesses Capacity must be a power of 2. insert() and remove() are O(n). クラス概要 class Ds\Deque implements Ds\Sequence , ArrayAccess { /* 定数 */ const int MIN_CAPACITY = 8 ; /* メソッド */ public function allocate ( i ... ity (): int public function clear (): void public function contains ( mixed ...$values ): bool public function copy (): Ds\Deque public function filter ( callable $callback = ? ): Ds\Deque public function find ( mixed $value ): mixed public function f ... c function join ( string $glue = ? ): string public function last (): mixed public function map ( callable $callback ): Ds\Deque public function merge ( mixed $values ): Ds\Deque public function pop (): mixed public function push ( mixed ...$values ): ...
-
https://man.mtool.work/php/8.3/class.ds-deque.html
- The Deque class 8742
- « Ds\Vector::unshift Ds\Deque::allocate » PHP Manual Data Structures The Deque class 検索 The Deque class (PECL ds >= 1.0.0) はじめに A Deque (pronounced “deck”) is a sequence of values in a contiguous buffer that grows and shrinks automati
... and unshift() are all O(1). Weaknesses Capacity must be a power of 2. insert() and remove() are O(n). クラス概要 class Ds\Deque implements Ds\Sequence , ArrayAccess { /* 定数 */ const int MIN_CAPACITY = 8 ; /* メソッド */ public function allocate ( i ... ity (): int public function clear (): void public function contains ( mixed ...$values ): bool public function copy (): Ds\Deque public function filter ( callable $callback = ? ): Ds\Deque public function find ( mixed $value ): mixed public function f ... c function join ( string $glue = ? ): string public function last (): mixed public function map ( callable $callback ): Ds\Deque public function merge ( mixed $values ): Ds\Deque public function pop (): mixed public function push ( mixed ...$values ): ...
-
https://man.mtool.work/php/8.3/class.ds-deque.html
- Returns a sub-deque of a given range 8305
- « Ds\Deque::shift Ds\Deque::sort » PHP Manual Ds\Deque Returns a sub-deque of a given range 検索 Ds\Deque::slice (PECL ds >= 1.0.0) Ds\Deque::slice — Returns a sub-deque of a given range 説明 public function Ds\Deque::slice ( int $index , i
... nt $length = ? ): Ds\Deque Creates a sub-deque of a given range. パラメータ index The index at which the sub-deque starts. If positive, the deque wil ... l start at that index in the deque. If negative, the deque will start that far from the end. length If a length is given and is positive, the resulting deque ... will have up to that many values in it. If the length results in an overflow, only values up to the end of the deque will be included. If a length is given and is negative, the deque will stop that many values from the end. If a length is ...
-
https://man.mtool.work/php/8.3/ds-deque.slice.html
- Returns a sub-deque of a given range 8305
- « Ds\Deque::shift Ds\Deque::sort » PHP Manual Ds\Deque Returns a sub-deque of a given range 検索 Ds\Deque::slice (PECL ds >= 1.0.0) Ds\Deque::slice — Returns a sub-deque of a given range 説明 public function Ds\Deque::slice ( int $index , i
... nt $length = ? ): Ds\Deque Creates a sub-deque of a given range. パラメータ index The index at which the sub-deque starts. If positive, the deque wil ... l start at that index in the deque. If negative, the deque will start that far from the end. length If a length is given and is positive, the resulting deque ... will have up to that many values in it. If the length results in an overflow, only values up to the end of the deque will be included. If a length is given and is negative, the deque will stop that many values from the end. If a length is ...
-
https://man.mtool.work/php/8.3/ds-deque.slice.html
- Rotates the deque by a given number of rotations 7854
- « Ds\Deque::reversed Ds\Deque::set » PHP Manual Ds\Deque Rotates the deque by a given number of rotations 検索 Ds\Deque::rotate (PECL ds >= 1.0.0) Ds\Deque::rotate — Rotates the deque by a given number of rotations 説明 public function Ds\Deque
... eque::rotate ( int $rotations ): void Rotates the deque by a given number of rotations, which is equivalent to successively calling $deque->push($deque->shift()) if the number of ... rotations is positive, or $deque->unshift($deque->pop()) if negative. パラメータ rotations The number of times the deque should be rotated. 戻り値 値を返し ... ません。. The deque of the current instance will be rotated. 例 例1 Ds\Deque::rotate() example <?php $deque = new \Ds\Deque ([ "a" , "b" , "c" ...
-
https://man.mtool.work/php/8.3/ds-deque.rotate.html
- Rotates the deque by a given number of rotations 7854
- « Ds\Deque::reversed Ds\Deque::set » PHP Manual Ds\Deque Rotates the deque by a given number of rotations 検索 Ds\Deque::rotate (PECL ds >= 1.0.0) Ds\Deque::rotate — Rotates the deque by a given number of rotations 説明 public function Ds\Deque
... eque::rotate ( int $rotations ): void Rotates the deque by a given number of rotations, which is equivalent to successively calling $deque->push($deque->shift()) if the number of ... rotations is positive, or $deque->unshift($deque->pop()) if negative. パラメータ rotations The number of times the deque should be rotated. 戻り値 値を返し ... ません。. The deque of the current instance will be rotated. 例 例1 Ds\Deque::rotate() example <?php $deque = new \Ds\Deque ([ "a" , "b" , "c" ...
-
https://man.mtool.work/php/8.3/ds-deque.rotate.html
- Removes all values from the deque 7594
- « Ds\Deque::capacity Ds\Deque::__construct » PHP Manual Ds\Deque Removes all values from the deque 検索 Ds\Deque::clear (PECL ds >= 1.0.0) Ds\Deque::clear — Removes all values from the deque 説明 public function Ds\Deque::clear (): void Rem
... oves all values from the deque. パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 例 例1 Ds\Deque::clear() example <?php $deque = n ... ew \Ds\Deque ([ 1 , 2 , 3 ]); print_r ( $deque ); $deque -> clear (); print_r ( $deque ); ?> 上の例の出力は、 たとえば以下のようになりま ... す。 Ds\Deque Object ( [0] => 1 [1] => 2 [2] => 3 ) Ds\Deque Object ( ) 関連キーワード: Deque deque clear Removes values print capacity ...
-
https://man.mtool.work/php/8.3/ds-deque.clear.html
- Determines if the deque contains given values 7594
- « Ds\Deque::__construct Ds\Deque::copy » PHP Manual Ds\Deque Determines if the deque contains given values 検索 Ds\Deque::contains (PECL ds >= 1.0.0) Ds\Deque::contains — Determines if the deque contains given values 説明 public function Ds
... \Deque::contains ( mixed ...$values ): bool Determines if the deque contains all values. パラメータ values Values to check. 戻り値 ... false if any of the provided values are not in the deque, true otherwise. 例 例1 Ds\Deque::contains() example <?php $deque = new \Ds\Deque ([ 'a' , 'b' , 'c' , 1 , 2 , 3 ]); var_d ... ump ( $deque -> contains ( 'a' )); // true var_dump ( $deque -> contains ( 'a' , 'b' )); // true var_dump ( $deque -> contains ( 'c' , ...
-
https://man.mtool.work/php/8.3/ds-deque.contains.html
- Adds values to the end of the deque 7594
- « Ds\Deque::pop Ds\Deque::reduce » PHP Manual Ds\Deque Adds values to the end of the deque 検索 Ds\Deque::push (PECL ds >= 1.0.0) Ds\Deque::push — Adds values to the end of the deque 説明 public function Ds\Deque::push ( mixed ...$values ):
... void Adds values to the end of the deque. パラメータ values The values to add. 戻り値 値を返しません。 例 例1 Ds\Deque::push() example <?php $deque = new \Ds\Deque ... (); $deque -> push ( "a" ); $deque -> push ( "b" ); $deque -> push ( "c" , "d" ); $deque -> push (...[ "e" , "f" ]); print_r ( $deque ... ); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Deque Object ( [0] => a [1] => b [2] => c [3] => d [4] => e [5] => f ) 関連キーワード: deque Deque push values Adds reduce mixed ...
-
https://man.mtool.work/php/8.3/ds-deque.push.html
- Determines if the deque contains given values 7567
- « Ds\Deque::__construct Ds\Deque::copy » PHP Manual Ds\Deque Determines if the deque contains given values 検索 Ds\Deque::contains (PECL ds >= 1.0.0) Ds\Deque::contains — Determines if the deque contains given values 説明 public function Ds
... \Deque::contains ( mixed ...$values ): bool Determines if the deque contains all values. パラメータ values Values to check. 戻り値 ... false if any of the provided values are not in the deque, true otherwise. 例 例1 Ds\Deque::contains() example <?php $deque = new \Ds\Deque ([ 'a' , 'b' , 'c' , 1 , 2 , 3 ]); var_d ... ump ( $deque -> contains ( 'a' )); // true var_dump ( $deque -> contains ( 'a' , 'b' )); // true var_dump ( $deque -> contains ( 'c' , ...
-
https://man.mtool.work/php/8.3/ds-deque.contains.html