Metadata-Version: 2.1
Name: hexlet-pairs
Version: 0.1.2
Summary: A SICP'ish functional pairs implemented in Python
Home-page: https://github.com/hexlet-components/python-pairs
License: ISC
Author: Hexlet Team
Author-email: info@hexlet.io
Requires-Python: >=3.6,<4.0
Classifier: Intended Audience :: Education
Classifier: License :: OSI Approved
Classifier: License :: OSI Approved :: ISC License (ISCL)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Education
Classifier: Topic :: Software Development :: Libraries
Classifier: Typing :: Typed
Project-URL: Repository, https://github.com/hexlet-components/python-pairs
Description-Content-Type: text/markdown

### hexlet-pairs

A SICP'ish Functional Pairs implemented in Python.

### Usage

<!-- This code will be doctested. Do not touch the markup! -->

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

