File: D:/HostingSpaces/SBogers10/eleo.komma.nl/vendor/lstrojny/functional-php/src/Functional/Equal.php
<?php
/**
* @package Functional-php
* @author Lars Strojny <lstrojny@php.net>
* @copyright 2011-2017 Lars Strojny
* @license https://opensource.org/licenses/MIT MIT
* @link https://github.com/lstrojny/functional-php
*/
namespace Functional;
/**
* Performs an equal comparison
*
* @param mixed $b the value to compare to
*
* @return callable the function to perform the comparison
*/
function equal($b)
{
return function ($a) use ($b) {
return $a == $b;
};
}