2017 © Pedro Peláez
 

library pairs

Pairs implementation

image

hexlet/pairs

Pairs implementation

  • Thursday, January 12, 2017
  • by mokevnin
  • Repository
  • 3 Watchers
  • 10 Stars
  • 58 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

php-pairs

github action status, (*1)

Functions for working with Pairs., (*2)

Examples

<?php

use function Php\Pairs\Pairs\cons;
use function Php\Pairs\Pairs\car;
use function Php\Pairs\Pairs\cdr;
use function Php\Pairs\Pairs\toString;

$pair = cons(1, 2);
$one = car($pair); // $one = 1;
$two = cdr($pair); // $two = 2;
$str = toString($pair); // '(1, 2)'

Hexlet Ltd. logo, (*3)

This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet., (*4)

See most active contributors on hexlet-friends., (*5)

The Versions

12/01 2017

dev-master

9999999-dev

Pairs implementation

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Kirill Mokevnin

pairs