Results of 1 - 9 of about 9 for carry (0.002 sec.)
- Ds\Deque::reduce — Reduces the deque to a single value using a callback functio... 10533
- Ds\Deque::reduce (PECL ds >= 1.0.0) Ds\Deque::reduce — Reduces the deque to a single value using a callback function 説明 public function Ds\Deque::reduce ( callable $callback , mixed $initial = ? ): mixed Reduces the deque to a single valu
... e using a callback function. パラメータ callback function callback ( mixed $carry , mixed $value ): mixed carry The return value of the previous callback, or initial if it's the first iteration. value The ... value of the current iteration. initial The initial value of the carry value. Can be null . 戻り値 The return value of the final callback. 例 例1 Ds\Deque::reduce() with initial value example < ... ?php $deque = new \Ds\Deque ([ 1 , 2 , 3 ]); $callback = function( $carry , $value ) { return $carry * $value ; }; var_dump ( $deque -> reduce ( $callback , 5 )); // Iterations: // // $carry = $in ...
-
https://man.mtool.work/php/8.3/ds-deque.reduce.html
- Ds\Sequence::reduce — Reduces the sequence to a single value using a callback f... 10533
- Ds\Sequence::reduce (PECL ds >= 1.0.0) Ds\Sequence::reduce — Reduces the sequence to a single value using a callback function 説明 abstract public function Ds\Sequence::reduce ( callable $callback , mixed $initial = ? ): mixed Reduces the s
... equence to a single value using a callback function. パラメータ callback function callback ( mixed $carry , mixed $value ): mixed carry The return value of the previous callback, or initial if it's the first iteration. value The ... value of the current iteration. initial The initial value of the carry value. Can be null . 戻り値 The return value of the final callback. 例 例1 Ds\Sequence::reduce() with initial value exampl ... e <?php $sequence = new \Ds\Vector ([ 1 , 2 , 3 ]); $callback = function( $carry , $value ) { return $carry * $value ; }; var_dump ( $sequence -> reduce ( $callback , 5 )); // Iterations: // // $carry = ...
-
https://man.mtool.work/php/8.3/ds-sequence.reduce.html
- Ds\Set::reduce — Reduces the set to a single value using a callback function | ... 10533
- Ds\Set::reduce (PECL ds >= 1.0.0) Ds\Set::reduce — Reduces the set to a single value using a callback function 説明 public function Ds\Set::reduce ( callable $callback , mixed $initial = ? ): mixed Reduces the set to a single value using a
... callback function. パラメータ callback function callback ( mixed $carry , mixed $value ): mixed carry The return value of the previous callback, or initial if it's the first iteration. value The ... value of the current iteration. initial The initial value of the carry value. Can be null . 戻り値 The return value of the final callback. 例 例1 Ds\Set::reduce() with initial value example <?p ... hp $set = new \Ds\Set ([ 1 , 2 , 3 ]); $callback = function( $carry , $value ) { return $carry * $value ; }; var_dump ( $set -> reduce ( $callback , 5 )); // Iterations: // // $carry = $init ...
-
https://man.mtool.work/php/8.3/ds-set.reduce.html
- Ds\Vector::reduce — Reduces the vector to a single value using a callback funct... 10533
- Ds\Vector::reduce (PECL ds >= 1.0.0) Ds\Vector::reduce — Reduces the vector to a single value using a callback function 説明 public function Ds\Vector::reduce ( callable $callback , mixed $initial = ? ): mixed Reduces the vector to a single
... value using a callback function. パラメータ callback function callback ( mixed $carry , mixed $value ): mixed carry The return value of the previous callback, or initial if it's the first iteration. value The ... value of the current iteration. initial The initial value of the carry value. Can be null . 戻り値 The return value of the final callback. 例 例1 Ds\Vector::reduce() with initial value example ... <?php $vector = new \Ds\Vector ([ 1 , 2 , 3 ]); $callback = function( $carry , $value ) { return $carry * $value ; }; var_dump ( $vector -> reduce ( $callback , 5 )); // Iterations: // // $carry = $i ...
-
https://man.mtool.work/php/8.3/ds-vector.reduce.html
- Ds\Map::reduce — Reduces the map to a single value using a callback function | ... 10479
- Ds\Map::reduce (PECL ds >= 1.0.0) Ds\Map::reduce — Reduces the map to a single value using a callback function 説明 public function Ds\Map::reduce ( callable $callback , mixed $initial = ? ): mixed Reduces the map to a single value using a
... callback function. パラメータ callback function callback ( mixed $carry , mixed $key , mixed $value ): mixed carry The return value of the previous callback, or initial if it's the first iterati ... on. key The key of the current iteration. value The value of the current iteration. initial The initial value of the carry value. Can be null . 戻り値 The return value of the final callback. 例 例1 Ds\Map::reduce() with initial value example <?p ... hp $map = new \Ds\Map ([ "a" => 1 , "b" => 2 , "c" => 3 ]); $callback = function( $carry , $key , $value ) { return $carry * $value ; }; var_dump ( $map -> reduce ( $callback , 5 )); // Iterations: // // $carry ...
-
https://man.mtool.work/php/8.3/ds-map.reduce.html
- array_reduce — コールバック関数を繰り返し配列に適用し、配列をひとつの値にまとめ... 8268
- array_reduce (PHP 4 >= 4.0.5, PHP 5, PHP 7, PHP 8) array_reduce — コールバック関数を繰り返し配列に適用し、配列をひとつの値にまとめる 説明 function array_reduce ( array $array , callable $callback , mixed $initial = null ): mixed array_reduc
... ck 関数を繰り返し適用し、 配列をひとつの値にまとめます。 パラメータ array 入力の配列。 callback function callback ( mixed $carry , mixed $item ): mixed carry 前回の反復処理の結果を保持します。最初の反復処理のときには、 initial の値を保持しています。 i ... 数を期待している場合、 この関数は E_WARNING を発生させるようになりました。 例 例1 array_reduce() の例 <?php function sum ( $carry , $item ) { $carry += $item ; return $carry ; } function product ( $carry , $item ) { $carry *= $item ; return $carry ; } ...
-
https://man.mtool.work/php/8.3/function.array-reduce.html
- Imagick::getImageHistogram — 画像のヒストグラムを取得する | PHP 8.3 6956
- Imagick::getImageHistogram (PECL imagick 2, PECL imagick 3) Imagick::getImageHistogram — 画像のヒストグラムを取得する 説明 public function Imagick::getImageHistogram (): array 画像のヒストグラムを ImagickPixel オブジェクトの配列で返します。
... age ( $histogramWidth , $histogramHeight * 3 , 'xc:black' ); $histogram -> setImageFormat ( 'png' ); $getMax = function ( $carry , $item ) { if ( $item > $carry ) { return $item ; } return $carry ; }; $colorValues = [ 'red' => getColorStatistics ( $hi ...
-
https://man.mtool.work/php/8.3/imagick.getimagehistogram.html
- Yac::dump — Dump cache entries for inspection | PHP 8.3 6614
- Yac::dump (PECL yac >= 1.0.0) Yac::dump — Dump cache entries for inspection 説明 public function Yac::dump ( int $limit = 100 , int $offset = 0 ): array Dumps metadata of the entries currently stored in the cache. The values themselves are
... ntries (short scalars kept inside the slot itself) have crc and size set to zero; entries stored in a separate value block carry their checksum and block size, and compressed entries additionally carry c_len . 例2 Paging through a large cache limit bo ...
-
https://man.mtool.work/php/8.3/yac.dump.html
- Deprecated Features | PHP 8.3 6345
- Deprecated Features PHP Core Using "namespace" as a class constant name Declaring a class constant named namespace is now deprecated. namespace is a semi-reserved keyword, and the name is being reserved for possible future syntax such as a
... nteger(), and doubleval() Following the deprecation of the non-canonical cast names in PHP 8.5 , the function aliases that carry the same outdated type names are now deprecated. They behave identically to their canonical counterparts, which should be ...
-
https://man.mtool.work/php/8.3/migration86.deprecated.html
PREV
1
NEXT