Ejemplo n.º 1
0
    }
    public static function bind()
    {
    }
    public static function test()
    {
        $f = function ($b) {
            return $a;
        };
        $u = Monad_Reader::unit($f);
        $fp = fopen('semichan.php');
        fclose($fp);
    }
}
Monad_Reader::test();
Characters::init();
// needed
class Characters
{
    // case 1
    // map($arr, Characters::$isLowerCase);
    public static $isLowerCase = null;
    public static $isUpperCase = null;
    public static function init()
    {
        // shit PHP syntax limitation
        Characters::$isLowerCase = function ($v) {
            return $v == strtolower($v);
        };
        Characters::$isUpperCase = function ($v) {
            return $v == strtoupper($v);