Results of 1 - 10 of about 96 for Reduce (0.005 sec.)
- コールバック関数を繰り返し配列に適用し、配列をひとつの値にまとめる 10663
- « array_rand array_replace » PHP Manual 配列 関数 コールバック関数を繰り返し配列に適用し、配列をひとつの値にまとめる 検索 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_reduce() は、配列 array の各要素に callback 関数 ... 配列が空の場合の最終結果として使用されます。 戻り値 結果の値を返します。 配列が空で initial が渡されなかった場合は、 array_reduce() は null を返します。 変更履歴 バージョン 説明 8.0.0 callback がリファレンス渡しされる引数を期待している場合、 この関数は ... E_WARNING を発生させるようになりました。 例 例1 array_reduce() の例 <?php function sum ( $carry , $item ) { $carry += $item ; return $carry ; } function product ( $carry , $item ) { $ ...
-
https://man.mtool.work/php/8.3/function.array-reduce.html
- コールバック関数を繰り返し配列に適用し、配列をひとつの値にまとめる 10663
- « array_rand array_replace » PHP Manual 配列 関数 コールバック関数を繰り返し配列に適用し、配列をひとつの値にまとめる 検索 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_reduce() は、配列 array の各要素に callback 関数 ... 配列が空の場合の最終結果として使用されます。 戻り値 結果の値を返します。 配列が空で initial が渡されなかった場合は、 array_reduce() は null を返します。 変更履歴 バージョン 説明 8.0.0 callback がリファレンス渡しされる引数を期待している場合、 この関数は ... E_WARNING を発生させるようになりました。 例 例1 array_reduce() の例 <?php function sum ( $carry , $item ) { $carry += $item ; return $carry ; } function product ( $carry , $item ) { $ ...
-
https://man.mtool.work/php/8.3/function.array-reduce.html
- Reduces the deque to a single value using a callback function 9626
- « Ds\Deque::push Ds\Deque::remove » PHP Manual Ds\Deque Reduces the deque to a single value using a callback function 検索 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 value using a callback function. パラメー ... nitial 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 ) { retur ... n $carry * $value ; }; var_dump ( $deque -> reduce ( $callback , 5 )); // Iterations: // // $carry = $initial = 5 // // $carry = $carry * 1 = 5 // $carry = $carry * 2 = 10 / ...
-
https://man.mtool.work/php/8.3/ds-deque.reduce.html
- Reduces the sequence to a single value using a callback function 9626
- « Ds\Sequence::push Ds\Sequence::remove » PHP Manual Ds\Sequence Reduces the sequence to a single value using a callback function 検索 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 sequence to a single value using a callback function. パラメ ... ial The initial value of the carry value. Can be null . 戻り値 The return value of the final callback. 例 例1 Ds\Sequence::reduce() with initial value example <?php $sequence = new \Ds\Vector ([ 1 , 2 , 3 ]); $callback = function( $carry , $value ) { r ... eturn $carry * $value ; }; var_dump ( $sequence -> reduce ( $callback , 5 )); // Iterations: // // $carry = $initial = 5 // // $carry = $carry * 1 = 5 // $carry = $carry * 2 = 10 / ...
-
https://man.mtool.work/php/8.3/ds-sequence.reduce.html
- Reduces the set to a single value using a callback function 9626
- « Ds\Set::merge Ds\Set::remove » PHP Manual Ds\Set Reduces the set to a single value using a callback function 検索 Ds\Set::reduce (PECL ds >= 1.0.0) Ds\Set::reduce — Reduces the set to a single value using a callback function 説明 public f
... unction Ds\Set::reduce ( callable $callback , mixed $initial = ? ): mixed Reduces the set to a single value using a callback function. パラメータ ... 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 <?php $set = new \Ds\Set ([ 1 , 2 , 3 ]); $callback = function( $carry , $value ) { return $c ... arry * $value ; }; var_dump ( $set -> reduce ( $callback , 5 )); // Iterations: // // $carry = $initial = 5 // // $carry = $carry * 1 = 5 // $carry = $carry * 2 = 10 / ...
-
https://man.mtool.work/php/8.3/ds-set.reduce.html
- Reduces the vector to a single value using a callback function 9626
- « Ds\Vector::push Ds\Vector::remove » PHP Manual Ds\Vector Reduces the vector to a single value using a callback function 検索 Ds\Vector::reduce (PECL ds >= 1.0.0) Ds\Vector::reduce — Reduces the vector to a single value using a callback fu
... nction 説明 public function Ds\Vector::reduce ( callable $callback , mixed $initial = ? ): mixed Reduces the vector to a single value using a callback function. パラメー ... itial 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 ) { ret ... urn $carry * $value ; }; var_dump ( $vector -> reduce ( $callback , 5 )); // Iterations: // // $carry = $initial = 5 // // $carry = $carry * 1 = 5 // $carry = $carry * 2 = 10 / ...
-
https://man.mtool.work/php/8.3/ds-vector.reduce.html
- Reduces the deque to a single value using a callback function 9626
- « Ds\Deque::push Ds\Deque::remove » PHP Manual Ds\Deque Reduces the deque to a single value using a callback function 検索 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 value using a callback function. パラメー ... nitial 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 ) { retur ... n $carry * $value ; }; var_dump ( $deque -> reduce ( $callback , 5 )); // Iterations: // // $carry = $initial = 5 // // $carry = $carry * 1 = 5 // $carry = $carry * 2 = 10 / ...
-
https://man.mtool.work/php/8.3/ds-deque.reduce.html
- Reduces the set to a single value using a callback function 9626
- « Ds\Set::merge Ds\Set::remove » PHP Manual Ds\Set Reduces the set to a single value using a callback function 検索 Ds\Set::reduce (PECL ds >= 1.0.0) Ds\Set::reduce — Reduces the set to a single value using a callback function 説明 public f
... unction Ds\Set::reduce ( callable $callback , mixed $initial = ? ): mixed Reduces the set to a single value using a callback function. パラメータ ... 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 <?php $set = new \Ds\Set ([ 1 , 2 , 3 ]); $callback = function( $carry , $value ) { return $c ... arry * $value ; }; var_dump ( $set -> reduce ( $callback , 5 )); // Iterations: // // $carry = $initial = 5 // // $carry = $carry * 1 = 5 // $carry = $carry * 2 = 10 / ...
-
https://man.mtool.work/php/8.3/ds-set.reduce.html
- Reduces the vector to a single value using a callback function 9626
- « Ds\Vector::push Ds\Vector::remove » PHP Manual Ds\Vector Reduces the vector to a single value using a callback function 検索 Ds\Vector::reduce (PECL ds >= 1.0.0) Ds\Vector::reduce — Reduces the vector to a single value using a callback fu
... nction 説明 public function Ds\Vector::reduce ( callable $callback , mixed $initial = ? ): mixed Reduces the vector to a single value using a callback function. パラメー ... itial 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 ) { ret ... urn $carry * $value ; }; var_dump ( $vector -> reduce ( $callback , 5 )); // Iterations: // // $carry = $initial = 5 // // $carry = $carry * 1 = 5 // $carry = $carry * 2 = 10 / ...
-
https://man.mtool.work/php/8.3/ds-vector.reduce.html
- Reduces the sequence to a single value using a callback function 9573
- « Ds\Sequence::push Ds\Sequence::remove » PHP Manual Ds\Sequence Reduces the sequence to a single value using a callback function 検索 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 sequence to a single value using a callback function. パラメ ... ial The initial value of the carry value. Can be null . 戻り値 The return value of the final callback. 例 例1 Ds\Sequence::reduce() with initial value example <?php $sequence = new \Ds\Vector ([ 1 , 2 , 3 ]); $callback = function( $carry , $value ) { r ... eturn $carry * $value ; }; var_dump ( $sequence -> reduce ( $callback , 5 )); // Iterations: // // $carry = $initial = 5 // // $carry = $carry * 1 = 5 // $carry = $carry * 2 = 10 / ...
-
https://man.mtool.work/php/8.3/ds-sequence.reduce.html