HH\Lib\Vec\filter_nulls

Meta Engineer?

This is available as Vec\filter_nulls in the www repository.

Returns a new vec containing only non-null values of the given Traversable

namespace HH\Lib\Vec;

function filter_nulls<Tv>(
  Traversable<?Tv> $traversable,
): vec<Tv>;

Time complexity: O(n) Space complexity: O(n)

Parameters

Returns

  • vec<Tv>