for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Boudewijn Schoon <[email protected]>
* @copyright Zicht Online <http://zicht.nl>
*/
namespace Zicht\Itertools\lib\Traits;
use Zicht\Itertools as iter;
trait FirstTrait
{
* Returns the first element of this iterable or
* returns $DEFAULT when this iterable is empty
*
* @param mixed $default
* @return mixed
public function first($default = null)
return iter\first($this, $default);
}