...

/

Tuple Structs

Tuple Structs

This lesson will walk you through tuple structs.

What Are Tuple Structs?

Recall tuples in Chapter 3.Tuple Structs are a data type that is a hybrid between a tuple and a struct.

Press + to interact

Why a tuple struct?

In the example above, when it is only a tuple we don’t know explicitly what each item in ...