hexlet-pairs 0.1.2

Creator: bradpython12

Last updated:

Add to Cart

Description:

hexletpairs 0.1.2

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')

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.