hexlet / pairs
Pairs implementation
Installs: 599
Dependents: 2
Suggesters: 0
Security: 0
Stars: 25
Watchers: 14
Forks: 9
Open Issues: 0
Requires
- php: >=7.4 || >=8.1
Requires (Dev)
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.6
This package is not auto-updated.
Last update: 2025-01-13 02:41:00 UTC
README
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)'
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.