HH\KeyedIterable::toImmMap

Returns an immutable map (ImmMap) based on the keys and values of the current KeyedIterable

public function toImmMap(): ImmMap<Tk, Tv>;

Returns

  • ImmMap<Tk, Tv> - an ImmMap that has the keys and associated values of the current KeyedIterable.