HH\Lib\C\is_empty
Requires the Hack Standard Library to be installed.
Facebook Engineer?
This function is available as C\is_empty()
in Facebook's www repository.
Returns whether the given Container is empty
namespace HH\Lib\C;
function is_empty<T>(
Container<T> $container,
): bool;
Time complexity: O(1) Space complexity: O(1)
Parameters
Returns
bool