Tuple indexing

To get at the f32 value, we will have to use tuple indexing. This is very similar to indexing an array, but we replace the following snippet:

let t = someArray[3]; 

We use the following snippet instead:

let t = test.1 

As with array indexes, the tuple indexes range from 0 to n-1.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset