HH\Lib\Keyset\intersect

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

Returns a new keyset containing only the elements of the first Traversable that appear in all the other ones

namespace HH\Lib\Keyset;

function intersect<Tv as arraykey>(
    Traversable<Tv> $first,
    Traversable<Tv> $second,
    Traversable<Tv> ...$rest,
): keyset<Tv>;

Parameters