2017 © Pedro Peláez
 

library php-funky

Functional Library for PHP

image

pldin601/php-funky

Functional Library for PHP

  • Monday, June 6, 2016
  • by pldin601
  • Repository
  • 1 Watchers
  • 0 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

php-funky

Functional Library for PHP., (*1)

Consist of two parts - Option and Lambda., (*2)

Option

Option is an object that represents encapsulation of an optional value. It can be used as the return value of functions which may or may not return a meaningful value when they are applied. It has two subclasses - Some and None. First encapsulates the original data and the second if there is no data to encapsulate., (*3)

Lambda

Lambda is a tool which helps you to make short callback functions for using, for example, in map, filter, sort or reduce callbacks., (*4)

Example 1. Will return sum of numbers from 1 up to 5:, (*5)

$sum = array_reduce(range(1, 5), func("$ + $"), 0);

The Versions

06/06 2016

dev-master

9999999-dev https://github.com/pldin601/php-funky

Functional Library for PHP

  Sources   Download

The Requires

  • php >=5.6

 

The Development Requires

by Roman Gemini (pldin601)

functional lambda option

08/03 2016

1.0

1.0.0.0 https://github.com/pldin601/php-funky

Functional Library for PHP

  Sources   Download

The Requires

  • php ^5.6

 

The Development Requires

by Roman Gemini (pldin601)

functional lambda option