In this chapter you will learn how to define and use other composite types:
Tuples
Structs
Tuple-structs
They are useful to group objects of different types.
At the end of the chapter, you’ll see some code style conventions.
The Tuples
Arrays and vectors can contain several items, yet such items must all be of the same type. If you wish to store in a single object several
subobjects of different types, you can do it in this way:
let data = (10000000, 183.19, 'Q');
let copy_of_data = data;
print!("{}, {}, {}",
data.0, copy_of_data.1, ...