Skip to content

Instantly share code, notes, and snippets.

@datashaman
Last active May 8, 2019 05:06
Show Gist options
  • Select an option

  • Save datashaman/e7fe67fe09c4ee73ad177ad44d43e548 to your computer and use it in GitHub Desktop.

Select an option

Save datashaman/e7fe67fe09c4ee73ad177ad44d43e548 to your computer and use it in GitHub Desktop.
Datashaman\Logic\F Example
<?php
<<<CONFIG
packages:
- "datashaman/logic: dev-master"
CONFIG;
#
# This is a Melody script. http://melody.sensiolabs.org/
#
use function Datashaman\Logic\F;
use function Datashaman\Logic\repr;
$f = F();
echo repr($f(12)) . PHP_EOL;
echo repr($f(null)) . PHP_EOL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment