« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 245 for vector (0.002 sec.)
The Vector class 7226
« Ds\Sequence::unshift Ds\Vector::allocate » PHP Manual Data Structures The Vector class 検索 The Vector class (PECL ds >= 1.0.0) はじめに A Vector is a sequence of values in a contiguous buffer that grows and shrinks automatically. It's th ... () , push() , pop() are all O(1). Weaknesses shift() , unshift() , insert() and remove() are all O(n). クラス概要 class Ds\Vector 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\Vector public function filter ( callable $callback = ? ): Ds\Vector public function find ( mixed $value ): mixed public function ... c function join ( string $glue = ? ): string public function last (): mixed public function map ( callable $callback ): Ds\Vector public function merge ( mixed $values ): Ds\Vector public function pop (): mixed public function push ( mixed ...$values ) ...
https://man.mtool.work/php/8.3/class.ds-vector.html
The Vector class 7226
« Ds\Sequence::unshift Ds\Vector::allocate » PHP Manual Data Structures The Vector class 検索 The Vector class (PECL ds >= 1.0.0) はじめに A Vector is a sequence of values in a contiguous buffer that grows and shrinks automatically. It's th ... () , push() , pop() are all O(1). Weaknesses shift() , unshift() , insert() and remove() are all O(n). クラス概要 class Ds\Vector 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\Vector public function filter ( callable $callback = ? ): Ds\Vector public function find ( mixed $value ): mixed public function ... c function join ( string $glue = ? ): string public function last (): mixed public function map ( callable $callback ): Ds\Vector public function merge ( mixed $values ): Ds\Vector public function pop (): mixed public function push ( mixed ...$values ) ...
https://man.mtool.work/php/8.3/class.ds-vector.html
Returns a sub-vector of a given range 6954
« Ds\Vector::shift Ds\Vector::sort » PHP Manual Ds\Vector Returns a sub-vector of a given range 検索 Ds\Vector::slice (PECL ds >= 1.0.0) Ds\Vector::slice — Returns a sub-vector of a given range 説明 public function Ds\Vector::slice ( int $i ... ndex , int $length = ? ): Ds\Vector Creates a sub-vector of a given range. パラメータ index The index at which the sub-vector starts. If positive, the vector ... will start at that index in the vector. If negative, the vector will start that far from the end. length If a length is given and is positive, the resulting vect ... or will have up to that many values in it. If the length results in an overflow, only values up to the end of the vector will be included. If a length is given and is negative, the vector will stop that many values from the end. If a length is ...
https://man.mtool.work/php/8.3/ds-vector.slice.html
Returns a sub-vector of a given range 6954
« Ds\Vector::shift Ds\Vector::sort » PHP Manual Ds\Vector Returns a sub-vector of a given range 検索 Ds\Vector::slice (PECL ds >= 1.0.0) Ds\Vector::slice — Returns a sub-vector of a given range 説明 public function Ds\Vector::slice ( int $i ... ndex , int $length = ? ): Ds\Vector Creates a sub-vector of a given range. パラメータ index The index at which the sub-vector starts. If positive, the vector ... will start at that index in the vector. If negative, the vector will start that far from the end. length If a length is given and is positive, the resulting vect ... or will have up to that many values in it. If the length results in an overflow, only values up to the end of the vector will be included. If a length is given and is negative, the vector will stop that many values from the end. If a length is ...
https://man.mtool.work/php/8.3/ds-vector.slice.html
Rotates the vector by a given number of rotations 6701
« Ds\Vector::reversed Ds\Vector::set » PHP Manual Ds\Vector Rotates the vector by a given number of rotations 検索 Ds\Vector::rotate (PECL ds >= 1.0.0) Ds\Vector::rotate — Rotates the vector by a given number of rotations 説明 public functi ... on Ds\Vector::rotate ( int $rotations ): void Rotates the vector by a given number of rotations, which is equivalent to successively ca ... lling $vector->push($vector->shift()) if the number of rotations is positive, or $vector->unshift($vector->pop()) if negative. パラメータ ... rotations The number of times the vector should be rotated. 戻り値 値を返しません。. The vector of the current instance will be rotated. 例 例1 Ds\Vector::rotate() ...
https://man.mtool.work/php/8.3/ds-vector.rotate.html
Rotates the vector by a given number of rotations 6701
« Ds\Vector::reversed Ds\Vector::set » PHP Manual Ds\Vector Rotates the vector by a given number of rotations 検索 Ds\Vector::rotate (PECL ds >= 1.0.0) Ds\Vector::rotate — Rotates the vector by a given number of rotations 説明 public functi ... on Ds\Vector::rotate ( int $rotations ): void Rotates the vector by a given number of rotations, which is equivalent to successively ca ... lling $vector->push($vector->shift()) if the number of rotations is positive, or $vector->unshift($vector->pop()) if negative. パラメータ ... rotations The number of times the vector should be rotated. 戻り値 値を返しません。. The vector of the current instance will be rotated. 例 例1 Ds\Vector::rotate() ...
https://man.mtool.work/php/8.3/ds-vector.rotate.html
Determines if the vector contains given values 6560
« Ds\Vector::__construct Ds\Vector::copy » PHP Manual Ds\Vector Determines if the vector contains given values 検索 Ds\Vector::contains (PECL ds >= 1.0.0) Ds\Vector::contains — Determines if the vector contains given values 説明 public func ... tion Ds\Vector::contains ( mixed ...$values ): bool Determines if the vector contains all values. パラメータ values Values to check. 戻り ... 値 false if any of the provided values are not in the vector, true otherwise. 例 例1 Ds\Vector::contains() example <?php $vector = new \Ds\Vector ([ 'a' , 'b' , 'c' , 1 , 2 , 3 ]); va ... r_dump ( $vector -> contains ( 'a' )); // true var_dump ( $vector -> contains ( 'a' , 'b' )); // true var_dump ( $vector -> contains ( 'c' ...
https://man.mtool.work/php/8.3/ds-vector.contains.html
Adds values to the end of the vector 6560
« Ds\Vector::pop Ds\Vector::reduce » PHP Manual Ds\Vector Adds values to the end of the vector 検索 Ds\Vector::push (PECL ds >= 1.0.0) Ds\Vector::push — Adds values to the end of the vector 説明 public function Ds\Vector::push ( mixed ...$v ... alues ): void Adds values to the end of the vector. パラメータ values The values to add. 戻り値 値を返しません。 例 例1 Ds\Vector::push() example <?php $vector = new \Ds\Vec ... tor (); $vector -> push ( "a" ); $vector -> push ( "b" ); $vector -> push ( "c" , "d" ); $vector -> push (...[ "e" , "f" ]); print_r ( $ve ... ctor ); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Vector Object ( [0] => a [1] => b [2] => c [3] => d [4] => e [5] => f ) 関連キーワード: vector Vector push values Adds reduce mix ...
https://man.mtool.work/php/8.3/ds-vector.push.html
Determines if the vector contains given values 6540
« Ds\Vector::__construct Ds\Vector::copy » PHP Manual Ds\Vector Determines if the vector contains given values 検索 Ds\Vector::contains (PECL ds >= 1.0.0) Ds\Vector::contains — Determines if the vector contains given values 説明 public func ... tion Ds\Vector::contains ( mixed ...$values ): bool Determines if the vector contains all values. パラメータ values Values to check. 戻り ... 値 false if any of the provided values are not in the vector, true otherwise. 例 例1 Ds\Vector::contains() example <?php $vector = new \Ds\Vector ([ 'a' , 'b' , 'c' , 1 , 2 , 3 ]); va ... r_dump ( $vector -> contains ( 'a' )); // true var_dump ( $vector -> contains ( 'a' , 'b' )); // true var_dump ( $vector -> contains ( 'c' ...
https://man.mtool.work/php/8.3/ds-vector.contains.html
Adds values to the end of the vector 6540
« Ds\Vector::pop Ds\Vector::reduce » PHP Manual Ds\Vector Adds values to the end of the vector 検索 Ds\Vector::push (PECL ds >= 1.0.0) Ds\Vector::push — Adds values to the end of the vector 説明 public function Ds\Vector::push ( mixed ...$v ... alues ): void Adds values to the end of the vector. パラメータ values The values to add. 戻り値 値を返しません。 例 例1 Ds\Vector::push() example <?php $vector = new \Ds\Vec ... tor (); $vector -> push ( "a" ); $vector -> push ( "b" ); $vector -> push ( "c" , "d" ); $vector -> push (...[ "e" , "f" ]); print_r ( $ve ... ctor ); ?> 上の例の出力は、 たとえば以下のようになります。 Ds\Vector Object ( [0] => a [1] => b [2] => c [3] => d [4] => e [5] => f ) 関連キーワード: vector Vector push values Adds end pop Se ...
https://man.mtool.work/php/8.3/ds-vector.push.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT