public static function single(array $arr, \Closure $predicate){
		
		foreach($arr as $k => $v){
			if($predicate($v, $k)){
				return $v;
			}
		}
		
		return null;
		
	}
public static function single(array $arr, \Closure $predicate){
		
		foreach($arr as $k => $v){
			if($predicate($v, $k)){
				return $v;
			}
		}
		
		return null;
		
	}
public static function single ( array $ arr , \ Closure $ predicate ) { foreach ( $ arr as $ k => $ v ) { if ( $ predicate ( $ v , $ k ) ) { return $ v ; } } return null ; }
Returns the value of the first matching predicate

@param array $arr
@param \Closure $predicate
@return mixed|null null is returned if no match was found
Returns the value of the first matching predicate