A SICP'ish functional pairs implemented in Python
Project description
hexlet-pairs
A SICP'ish Functional Pairs implemented in Python.
Usage
>>> from hexlet import pairs
>>> p = pairs.cons(42, 'foo')
>>> pairs.is_pair(p)
True
>>> pairs.car(p)
42
>>> pairs.cdr(p)
'foo'
>>> print(pairs.to_string(p))
(42, 'foo')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hexlet-pairs-0.1.2.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for hexlet_pairs-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed54a39437c0a131cceb6f88af4edf902a42cdcfc8a9401205791381233aba4d |
|
MD5 | 49c6c5f4a4a8a078f4db9697791a999d |
|
BLAKE2b-256 | 0af7ef7ef9b3420ca82e077e5df78eaf762bf42e1d88b6a373214550dd857bcb |