WEBVTT 00:00.570 --> 00:03.420 Let me summarize what you have learned about the area so far. 00:04.750 --> 00:11.380 In summary, and Erra is a collection of zero or more elements, unlike some other programming languages 00:11.380 --> 00:14.090 in your areas are very simple and pure. 00:14.650 --> 00:18.410 They store their elements in contiguous memory locations. 00:18.760 --> 00:21.860 This makes them very fast and very efficient. 00:22.450 --> 00:26.140 In addition to that, Engo and arrays length is fixed. 00:26.260 --> 00:32.320 So you can add elements to an array or we can remove the its element type is also fixed. 00:32.500 --> 00:39.540 For example, you can store a string value in an entry and erase elements are unnamed variables. 00:39.940 --> 00:47.560 So you need to use index expressions to access the indexes and go start from zero and goes to the length 00:47.560 --> 00:48.950 of the array minus one. 00:49.660 --> 00:53.770 And lastly, you can use the land function to get the length of an array. 00:55.320 --> 01:01.560 Within Skerrett Bracers, you can declare the length of the area and right next to it, you can declare 01:01.560 --> 01:02.810 the element type of area. 01:03.770 --> 01:10.610 An air race type is consisting of its length and its element as a whole together, as you know, Go 01:10.610 --> 01:12.590 is a static type programming language. 01:12.590 --> 01:15.520 So the types are determined at compile time only. 01:16.010 --> 01:19.800 So that's why an error is linked and the elements are fixed. 01:20.180 --> 01:27.050 That's why you can change its length and add or remove its elements, since its length is a part of 01:27.050 --> 01:32.840 its type and it belongs to compile time so that you can also use constant expressions while setting 01:32.840 --> 01:33.470 its length. 01:34.790 --> 01:41.000 You can also create a new a value by using an air literal, you don't have to initialize old elements. 01:41.510 --> 01:47.330 Godwill initialized on initialize elements to their zero values depending on the arrays element type 01:47.330 --> 01:47.740 for you. 01:48.380 --> 01:54.170 For example, here, initializes the second half of the elements to empty string values, because every 01:54.290 --> 01:55.640 element type is string. 01:57.390 --> 02:04.350 Then use an very literal you don't have to declare the areas land go can find out and raise Lancs by 02:04.350 --> 02:07.230 looking at the number of given elements at compile time. 02:08.460 --> 02:14.940 You can specify the index positions of the elements by using the key elements global, initialize any 02:14.940 --> 02:18.270 unspecified elements to their zero values automatically. 02:19.870 --> 02:25.420 Gore doesn't support multidimensional arrays, however, you can declare an eraser element type as an 02:25.420 --> 02:33.250 array so that you can imitate multidimensional erasing go here Thisara stores to other arrays with three 02:33.250 --> 02:34.030 inch elements. 02:36.330 --> 02:42.540 In most other languages, arrays are reference types, so in those languages, an array indirectly contains 02:42.540 --> 02:43.310 its elements. 02:43.920 --> 02:48.480 However, in your arrays are pure value types so you can go. 02:48.480 --> 02:54.240 An array directly contains all its elements together in a single and contiguous memory block. 02:54.720 --> 02:59.760 This means you assign an array code will create a new array by copying the original array. 03:01.110 --> 03:07.080 Different types of race are neither comparable nor assignable, for example, here, even though the 03:07.080 --> 03:11.160 11 types of these areas are the same, their length are different. 03:11.610 --> 03:14.510 So you can't compare or assign them between each other. 03:17.450 --> 03:24.090 Every composite type is an unnamed type and an underlying type of a composite type is itself, area 03:24.110 --> 03:28.400 is a composite type two, so an area is on the line type itself. 03:30.180 --> 03:34.560 You can define a name to type using a composite type such as an eraser. 03:35.410 --> 03:40.870 Here I am comparing to Ara Literals, the one at the letters and name type, and the other one has an 03:40.870 --> 03:45.890 unnamed type, so you can compare to errors if they're on the line, type is the same. 03:46.360 --> 03:50.230 This is also true for the other composite literals, as you'll see afterward. 03:52.060 --> 03:53.470 Feldon, congrats. 03:53.680 --> 03:56.830 Now, you have learned almost everything about Galeras. 03:57.960 --> 04:04.030 I promised that we were going to build a digital clock project in the U.S., I will keep my promise. 04:04.050 --> 04:05.970 So in the next section, we're going to build it. 04:06.190 --> 04:07.950 Now, where is the next section?