« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 16 for carry (0.002 sec.)
Reduces the deque to a single value using a callback function 9946
« 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 ... = ? ): mixed Reduces the deque 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\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
Reduces the sequence to a single value using a callback function 9946
« 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 ... ): mixed Reduces the sequence 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
Reduces the set to a single value using a callback function 9946
« 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 ... l = ? ): 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
Reduces the vector to a single value using a callback function 9946
« 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 ... ? ): 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
Reduces the deque to a single value using a callback function 9946
« 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 ... = ? ): mixed Reduces the deque 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\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
Reduces the sequence to a single value using a callback function 9946
« 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 ... ): mixed Reduces the sequence 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
Reduces the set to a single value using a callback function 9946
« 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 ... l = ? ): 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
Reduces the vector to a single value using a callback function 9946
« 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 ... ? ): 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
Reduces the map to a single value using a callback function 9911
« Ds\Map::putAll Ds\Map::remove » PHP Manual Ds\Map Reduces the map to a single value using a callback function 検索 Ds\Map::reduce (PECL ds >= 1.0.0) Ds\Map::reduce — Reduces the map to a single value using a callback function 説明 public ... l = ? ): 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
Reduces the map to a single value using a callback function 9894
« Ds\Map::putAll Ds\Map::remove » PHP Manual Ds\Map Reduces the map to a single value using a callback function 検索 Ds\Map::reduce (PECL ds >= 1.0.0) Ds\Map::reduce — Reduces the map to a single value using a callback function 説明 public ... l = ? ): 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
PREV 1 2 NEXT