npm install @hexlet/pairs
import {
cons, car, cdr, toString, isPair,
} from '@hexlet/pairs';
const pair = cons(3, 5);
isPair(pair); // true
car(pair); // 3
cdr(pair); // 5
toString(pair); // (3, 5)
For more information, see the Full Documentation
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.