April 2018
Intermediate to advanced
408 pages
10h 42m
English
There are three ways we can build NamedTuple instances. The choice of technique we use is generally based on how much additional information is available at the time of object construction.
We've shown two of the three techniques in the examples in the previous section. We'll emphasize the design considerations here. It includes the following choices:
Leg(start, end, round(haversine(start, end), 4))