for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Prelude;
const head = __NAMESPACE__.'\head';
use Prelude\Exception\EmptyListException;
function head(array $xss)
{
if ([] === $xss) {
throw new EmptyListException;
}
return \array_values($xss)[0];