Nous n’avons pas trouvé cette entrée. Affichage de résultats approximatifs. Vérifiez l’orthographe ou proposez d’ajouter ce terme au dictionnaire.
of arrays
array
Acesta este modul în care citim și scriem valori, prin accesarea elementelor de array
This is how we read and write values, by accessing the elements of arrays
Prin accesarea elementelor de array identificate printr-un index, putem atât citi cât și atribui o valoare, ceea ce înseamnă că elementele array-urilor pot fi tratate ca variabile.
By accessing the elements of arrays identified by an index, we can both read or assign a value, which means that the elements of the arrays can be treated as variables.
Cand vine vorba de array nu este nici o modalitate simpla de a verifica daca ar trebui sa se comporte ca un hash table sau ca un vector.
When it comes to arrays, there isn't any simple way to check if it should behave as a hash table or as a vector.
De asemenea, putem vedea că acest tip de array poate fi doar citit - când am încercat să schimbăm valoarea unui anumit element din array, am primit o eroare.
We can also see that this kind of array is read only - when we tried to change the value of a certain array element, we got an error as well.
Swift permite de asemenea downcasting-ul opțional la nivel de array, dar este puțin mai complicat deoarece trebuie să folosești operatorul de coalescență nil pentru a asigura ca acolo va fi mereu o valoare pentru buclă.
Swift also allows optional downcasting at the array level, although it's a bit more tricksy because you need to use the nil coalescing operator to ensure there's always a value for the loop.
La fel ca și în cazul array-urilor, putem accesa caracterele individuale ale șirului utilizând un index de array, și la fel ca în cazul array-urilor, vom obține o excepție dacă încercăm să accesăm un index care nu există.
Just like arrays, we can access the individual characters of the string using an array index, and just as in the array's case, we get an exception if we try to access an index that does not exist.
Ei bine, 0 este, de asemenea, o valoare perfect validă pentru o celulă de array existentă, nu?
Well, 0 is also a perfectly valid value for an actual existing array cell, isn't it?
Observați că setăm 0 ca parametru al array-ului, deoarece păstrăm secvența de valori într-un array și după cum deja știm, numărarea elementelor de array începe de la 0.
Notice that as a parameter of the array we give 0 because we keep the sequence of values in an array, and as we already know, counting of array elements starts from 0.
Cu toate acestea, în primul exemplu, vom și atribui valori specifice elementelor noastre de array, în timp ce în al doilea exemplu, array-ul este populat cu 6 numere întregi, toate având valoarea implicită 0.
However, in the first example, we also assign specific values to our array elements, while in the second example, the array is populated with 6 integers, all having the default value of 0.
Puteți chiar să depanați programul și să parcurgeți codurile, pentru a observa modul în care iteratorul avansează o poziție de array de fiecare dată când este invocată metoda MoveNext().
You can even debug the program and step through codes, to observe how the iterator advances an array position each time the MoveNext() method is invoked.
Proprietatea Current a enumeratorului ne oferă, evident, valoarea celulei de array spre care indică iteratorul.
The Current property of the enumerator gives us, obviously, the value of the array cell at which the iterator is currently pointing at.
Și chiar și mai ciudat, dacă lista mea conține doar 6 elemente, care este valoarea Current, dacă cer iteratorului să MoveNext() de 15 ori, adică 15 celule de array?
And even weirder, if my list contains only 6 elements, what's the value of Current, if I ask the iterator to MoveNext() 13 times, meaning 13 array cells?
Versiunea 2018: Opțiuni pentru array Sunt disponibile opțiuni de array noi pentru a crea copii ale obiectelor aranjate în modelul RECTANGULAR, POLAR sau PATH.
Version 2018:Array Options New array options are available to create copies of objects arranged in RECTANGULAR, POLAR, or PATH pattern.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.
Aucun résultat pour cette recherche.
Expressions en anglais avec traductions contenant de array