File tree Expand file tree Collapse file tree 12 files changed +1249
-340
lines changed
Expand file tree Collapse file tree 12 files changed +1249
-340
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 11"""
2- A multi-dimensional `` Vector` ` class, take 1
2+ A multi-dimensional `Vector` class, take 1
33
4- A `` Vector` ` is built from an iterable of numbers::
4+ A `Vector` is built from an iterable of numbers::
55
66 >>> Vector([3.1, 4.2])
77 Vector([3.1, 4.2])
7070 9.53939201...
7171
7272
73- Test of `` .__bytes__` ` and `.frombytes()` methods::
73+ Test of `.__bytes__` and `.frombytes()` methods::
7474
7575 >>> v1 = Vector([3, 4, 5])
7676 >>> v1_clone = Vector.frombytes(bytes(v1))
Original file line number Diff line number Diff line change 11"""
2- A multi-dimensional `` Vector` ` class, take 2
2+ A multi-dimensional `Vector` class, take 2
33
4- A `` Vector` ` is built from an iterable of numbers::
4+ A `Vector` is built from an iterable of numbers::
55
66 >>> Vector([3.1, 4.2])
77 Vector([3.1, 4.2])
7070 9.53939201...
7171
7272
73- Test of `` .__bytes__` ` and `.frombytes()` methods::
73+ Test of `.__bytes__` and `.frombytes()` methods::
7474
7575 >>> v1 = Vector([3, 4, 5])
7676 >>> v1_clone = Vector.frombytes(bytes(v1))
Original file line number Diff line number Diff line change 11"""
2- A multi-dimensional `` Vector` ` class, take 3
2+ A multi-dimensional `Vector` class, take 3
33
4- A `` Vector` ` is built from an iterable of numbers::
4+ A `Vector` is built from an iterable of numbers::
55
66 >>> Vector([3.1, 4.2])
77 Vector([3.1, 4.2])
7070 9.53939201...
7171
7272
73- Test of `` .__bytes__` ` and `.frombytes()` methods::
73+ Test of `.__bytes__` and `.frombytes()` methods::
7474
7575 >>> v1 = Vector([3, 4, 5])
7676 >>> v1_clone = Vector.frombytes(bytes(v1))
Original file line number Diff line number Diff line change 11"""
2- A multi-dimensional `` Vector` ` class, take 4
2+ A multi-dimensional `Vector` class, take 4
33
4- A `` Vector` ` is built from an iterable of numbers::
4+ A `Vector` is built from an iterable of numbers::
55
66 >>> Vector([3.1, 4.2])
77 Vector([3.1, 4.2])
7070 9.53939201...
7171
7272
73- Test of `` .__bytes__` ` and `.frombytes()` methods::
73+ Test of `.__bytes__` and `.frombytes()` methods::
7474
7575 >>> v1 = Vector([3, 4, 5])
7676 >>> v1_clone = Vector.frombytes(bytes(v1))
Original file line number Diff line number Diff line change 11# tag::VECTOR_V5[]
22"""
3- A multidimensional `` Vector` ` class, take 5
3+ A multidimensional `Vector` class, take 5
44
5- A `` Vector` ` is built from an iterable of numbers::
5+ A `Vector` is built from an iterable of numbers::
66
77 >>> Vector([3.1, 4.2])
88 Vector([3.1, 4.2])
7171 9.53939201...
7272
7373
74- Test of `` .__bytes__` ` and `.frombytes()` methods::
74+ Test of `.__bytes__` and `.frombytes()` methods::
7575
7676 >>> v1 = Vector([3, 4, 5])
7777 >>> v1_clone = Vector.frombytes(bytes(v1))
Original file line number Diff line number Diff line change 11"""
2- A multi-dimensional `` Vector` ` class, take 6: operator ``+``
2+ A multi-dimensional `Vector` class, take 6: operator ``+``
33
4- A `` Vector` ` is built from an iterable of numbers::
4+ A `Vector` is built from an iterable of numbers::
55
66 >>> Vector([3.1, 4.2])
77 Vector([3.1, 4.2])
7070 9.53939201...
7171
7272
73- Test of `` .__bytes__` ` and `.frombytes()` methods::
73+ Test of `.__bytes__` and `.frombytes()` methods::
7474
7575 >>> v1 = Vector([3, 4, 5])
7676 >>> v1_clone = Vector.frombytes(bytes(v1))
Original file line number Diff line number Diff line change 11"""
2- A multi-dimensional `` Vector` ` class, take 7: operator ``*``
2+ A multi-dimensional `Vector` class, take 7: operator ``*``
33
4- A `` Vector` ` is built from an iterable of numbers::
4+ A `Vector` is built from an iterable of numbers::
55
66 >>> Vector([3.1, 4.2])
77 Vector([3.1, 4.2])
7070 9.53939201...
7171
7272
73- Test of `` .__bytes__` ` and `.frombytes()` methods::
73+ Test of `.__bytes__` and `.frombytes()` methods::
7474
7575 >>> v1 = Vector([3, 4, 5])
7676 >>> v1_clone = Vector.frombytes(bytes(v1))
Original file line number Diff line number Diff line change 11"""
2- A multi-dimensional `` Vector` ` class, take 8: operator ``==``
2+ A multi-dimensional `Vector` class, take 8: operator ``==``
33
4- A `` Vector` ` is built from an iterable of numbers::
4+ A `Vector` is built from an iterable of numbers::
55
66 >>> Vector([3.1, 4.2])
77 Vector([3.1, 4.2])
7070 9.53939201...
7171
7272
73- Test of `` .__bytes__` ` and `.frombytes()` methods::
73+ Test of `.__bytes__` and `.frombytes()` methods::
7474
7575 >>> v1 = Vector([3, 4, 5])
7676 >>> v1_clone = Vector.frombytes(bytes(v1))
Original file line number Diff line number Diff line change @@ -533,7 +533,7 @@ Você poderia usar ``reduce``—como vimos na <<map_filter_reduce_sec>>—mas is
533533O <<fact_reduce_lambda_ex>> mostra como resolver esse problema usando `lambda`.
534534
535535[[fact_reduce_lambda_ex]]
536- .Fatorial implementado com `reduce`e uma função anônima
536+ .Fatorial implementado com `reduce` e uma função anônima
537537====
538538[source, python]
539539----
You can’t perform that action at this time.
0 commit comments