HH\Lib\Vec\fill

This API is part of the Hack Standard Library, not HHVM itself.
Facebook Engineer?

This function is available as Vec\fill() in Facebook's www repository.

Returns a new vec of size $size where all the values are $value

Description

namespace HH\Lib\Vec;

function fill<Tv>(
  int $size,
  Tv $value,
): vec<Tv>;

Parameters

  • int $size
  • Tv $value