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 details)
Built Distribution
File details
Details for the file hexlet-pairs-0.1.2.tar.gz
.
File metadata
- Download URL: hexlet-pairs-0.1.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.6.8 Linux/4.15.0-55-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b719ba487d3b816a7fa5ddcf57b0b63dc4ee29d346ca86ec36581b47f6647b9 |
|
MD5 | 3f35a657da7c164c2e6d44ffa4f3a3c1 |
|
BLAKE2b-256 | 6b5e498dce8587226688eaa46b5de15b41664a08e39d8705fd0bba71d462f0df |
File details
Details for the file hexlet_pairs-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: hexlet_pairs-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.6.8 Linux/4.15.0-55-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed54a39437c0a131cceb6f88af4edf902a42cdcfc8a9401205791381233aba4d |
|
MD5 | 49c6c5f4a4a8a078f4db9697791a999d |
|
BLAKE2b-256 | 0af7ef7ef9b3420ca82e077e5df78eaf762bf42e1d88b6a373214550dd857bcb |