HH\ImmMap::__construct

Description

public function __construct(
  ?KeyedTraversable<Tk,Tv> $it,
): void

Creates an ImmMap from the given KeyedTraversable, or an empty ImmMap if null is passed.

Parameters

  • ?KeyedTraversable<Tk,Tv> $it - any Traversable object from which to create an ImmMap (e.g., array). If null, then an empty ImmMap is created.

Examples

See Map::__construct for usage examples.