Commit inicial con archivos existentes
This commit is contained in:
14
vendor/react/partial/examples/partial.php
vendored
Executable file
14
vendor/react/partial/examples/partial.php
vendored
Executable file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
use function React\Partial\bind;
|
||||
|
||||
$add = function ($a, $b) {
|
||||
return $a + $b;
|
||||
};
|
||||
|
||||
$addOne = bind($add, 1);
|
||||
|
||||
echo sprintf("%s\n", $addOne(5));
|
||||
// outputs 6
|
||||
Reference in New Issue
Block a user