2017 © Pedro Peláez
 

library crankshaft

Iteration Utils for PHP similar to Python itertools

image

thumbtack/crankshaft

Iteration Utils for PHP similar to Python itertools

  • Friday, June 6, 2014
  • by visualmotive
  • Repository
  • 58 Watchers
  • 8 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Crankshaft

A PHP version of Python's itertools., (*1)

Supported functions include map, filter, each, and reduce., (*2)

Basic usage:, (*3)

require_once('crankshaft.php');

$a = tt_iter([1, 2, 3])
    ->map(function($x) { return 2 * x; })
    ->to_array();

// $a is now [2, 4, 8]

Running Tests

This requires simpletest to be installed., (*4)

The Versions

06/06 2014

dev-master

9999999-dev https://github.com/thumbtack/crankshaft

Iteration Utils for PHP similar to Python itertools

  Sources   Download

MIT

The Development Requires

by Eric Naeseth
by Chris Mueller