HH\Lib\C\pop_frontx

Requires the Hack Standard Library to be installed.

Like pop_front but enforces non-empty container as input

namespace HH\Lib\C;

function pop_frontx<T as Container<Tv>, Tv>(
  inout T $container,
): Tv;

Parameters

  • inout T $container

Returns

  • Tv