HH\Lib\Keyset\drop
Returns a new keyset containing all except the first $n
elements of
the given Traversable
namespace HH\Lib\Keyset;
function drop<Tv as arraykey>(
Traversable<Tv> $traversable,
int $n,
): keyset<Tv>;
To take only the first $n
elements, see Keyset\take()
.
Time complexity: O(n), where n is the size of $traversable
Space complexity: O(n), where n is the size of $traversable
Parameters
Traversable<Tv>
$traversable
int $n
Returns
keyset<Tv>