library pairs
Pairs implementation
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
php-pairs
, (*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)'
, (*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)
dev-master
9999999-dev
Pairs implementation
Sources
Download
MIT
The Requires
The Development Requires
by
Kirill Mokevnin
pairs