hexlet/pairs

v1.1.0 2022-01-16 12:39 UTC

This package is not auto-updated.

Last update: 2024-09-23 01:16:10 UTC


README

github action status

处理对偶的函数。

示例

<?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

此存储库由Hexlet团队和社区创建和维护,Hexlet是一个教育项目。了解更多关于Hexlet的信息

hexlet-friends 上查看最活跃的贡献者。