2017 © Pedro Peláez
 

library lambda

Lambda-function generator

image

nerd-components/lambda

Lambda-function generator

  • Wednesday, October 5, 2016
  • by pldin601
  • Repository
  • 1 Watchers
  • 1 Stars
  • 79 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

php-lambda

Build Status Coverage Status StyleCI, (*1)

Generates lambda function using given string pattern., (*2)

Example

use function Lambda\l;

// Unindexed placeholders mode
$sum = l('$ + $');

echo $sum(2, 4); // will output 6


// Indexed placeholders mode
$func = l('$0 + ($0 * $1)');

echo $func(2, 6); // will output 14


// Filtering function
$numbers = range(1, 10);

$evens = array_filter(l('$ % 2 == 0'), $numbers); // will produce array [2, 4, 6, 8, 10]

The Versions

05/10 2016

dev-master

9999999-dev

Lambda-function generator

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Roman Lakhtadyr

05/10 2016

v2.0.1

2.0.1.0

Lambda-function generator

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Roman Lakhtadyr

02/10 2016

v2.0.0

2.0.0.0

Lambda-function generator

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Roman Lakhtadyr

24/09 2016

dev-pldin601-patch-1

dev-pldin601-patch-1

Generates lambda function using given string pattern

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Roman Gemini

24/09 2016

dev-analysis-zY6lNd

dev-analysis-zY6lNd

Generates lambda function using given string pattern

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Roman Gemini

14/06 2016

v1.0.2

1.0.2.0

Generates lambda function using given string pattern

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Roman Gemini

31/05 2016

v1.0.1

1.0.1.0

Generates lambda function using given string pattern

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Roman Gemini

31/05 2016

v1.0

1.0.0.0

Generates lambda function using given string pattern

  Sources   Download

MIT

The Development Requires

by Roman Gemini