Examples of using Underlying array in English and their translations into Chinese
{-}
-
Political
-
Ecclesiastic
-
Programming
A nil slice has a length and capacity of 0 andhas no underlying array.
Other slices that share the same underlying array will see those changes.
Slices support the[] operator to access elements of the underlying array.
With each addition, the list needs to make sure its underlying array has enough free slots in it to accommodate the new item.
In fact, ArrayList. Sort just calls Sort on the underlying array.
Yes, the underlying array has 10 elements, but we need to explicitly expand our slice in order to access those elements.
A nil slice has a length andcapacity of 0 with no existing underlying array.
The capacity of the slice is the number of elements in the underlying array starting from the index from which the slice is created.
Any modifications done to the slice will be reflected in the underlying array.
With each addition, the list needs to make sure its underlying array has enough free slots in it to accommodate the new item.
Any modifications done to the slice will be reflected in the underlying array.
When a number of slices share the same underlying array, the changes that each one makes will be reflected in the array. .
The length is the size of the slice,the capacity is the size of the underlying array.
Slices hold references to an underlying array, and if you assign one slice to another, both refer to the same array. .
Initialcapacity: hashmap, which is the length of the underlying array.
Parallel hash tables store their elements in an underlying array and place them in the position determined by the hash code of the respective element.
A slice does not store any data,it just describes a section of an underlying array.
Notice that this header still points to the same underlying array, stored in the buffer variable.
Changing the elements of a slice modifies the corresponding elements of its underlying array.
If you could,the garbage collection system would need to keep the previous underlying array around until you had stopped using that pointer.
This means that the elements can be accessed andupdated efficiently by modifying the underlying array.
All standard Java collections, as well as most custom and extended implementations(such as Trove and Google's Guava),use underlying arrays(either primitive- or object-based).
A slices does not store any data,it just describes a section of an underlying array.
As mentioned earlier,re-slicing a slice doesn't make a copy of the underlying array.
When a slice is passed to a function, even though it's passed by value,the pointer variable will refer to the same underlying array.
When a slice is passed to a function, even though it's passed by value,the pointer variable will refer to the same underlying array.
This creates a new tall array variable with underlying data type double.
It is often used for passwords, digital fingerprints,or data with an underlying byte array. .
But since the underlying implementation is an array, the array must be resized if you add a lot of elements.
The Torch Tensor and NumPy array will share their underlying memory locations, and changing one will change the other.