HH\Lib\Vec\partition

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

Returns a 2-tuple containing vecs for which the given predicate returned true and false, respectively

namespace HH\Lib\Vec;

function partition<Tv>(
    Traversable<Tv> $traversable,
  (function(Tv):bool) $predicate,
): (vec<Tv>,vec<Tv>);

Parameters