HH\Lib\Vec\flatten

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

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

Returns a new vec formed by joining the Traversable elements of the given Traversable

Description

namespace HH\Lib\Vec;

function flatten<Tv>(
  Traversable<Traversable<Tv>> $traversables,
): vec<Tv>;

For a fixed number of Traversables, see Vec\concat().

Parameters