Function __global->collapse_1d_complexity

Definitions

sources/global3.php

  • Take a list of maps of just one element, 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 of our maps that reside in our map (null: first key)
$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 one element, and make it into a single map.
 *
 * @param  ?string $key The key of our maps that reside in our map (null: first key)
 * @param  array $list The map of maps
 * @return array The collapsed map
 */

function collapse_1d_complexity(?string $key, array $list) : array