Skip to content

Files

Latest commit

Jun 7, 2022
ca5e276 · Jun 7, 2022

History

History
29 lines (19 loc) · 936 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 936 Bytes

php-pairs

github action status

Functions for working with Pairs.

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

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

See most active contributors on hexlet-friends.