We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8206e0 commit aa2b8dcCopy full SHA for aa2b8dc
README.md
@@ -14,16 +14,12 @@ pip install hexlet-pairs
14
15
<!-- This code will be doctested. Do not touch the markup! -->
16
17
- >>> from hexlet import pairs
18
- >>> p = pairs.cons(42, 'foo')
19
- >>> pairs.is_pair(p)
20
- True
21
- >>> pairs.car(p)
22
- 42
23
- >>> pairs.cdr(p)
24
- 'foo'
25
- >>> print(pairs.to_string(p))
26
- cons(42, 'foo')
+ 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')
27
28
[](https://ru.hexlet.io/pages/about)
29
0 commit comments