Function __global->collapse_2d_complexity

Definitions

sources/global3.php

  • Take a list of maps of just two elements, and make it into a single map.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$key string No No required parameter N/A N/A The key key of our maps that reside in our map
$value string No No required parameter N/A N/A The value key of our maps that reside in our map
$list array No No required parameter N/A N/A The map of maps

Returns

  • The collapsed map
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Take a list of maps of just two elements, and make it into a single map.
 *
 * @param  string $key The key key of our maps that reside in our map
 * @param  string $value The value key of our maps that reside in our map
 * @param  array $list The map of maps
 * @return array The collapsed map
 */

function collapse_2d_complexity(string $key, string $value, array $list) : array