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 the array that
Inițial, enumeratorul indică spre o valoare santinelă, o celulă de la începutul array-ului, care nu există cu adevărat și nu are nicio valoare.
Initially, the enumerator points to a sentinel value, a cell at the beginning of the array that does not really exist and has no value.
Gândiți-vă la asta pentru o clipă: am spus deja că enumerarea indică inițial o valoare santinelă la începutul array-ului, care nu există de fapt.
Think about this for a second: I already said that the enumerator initially points to a sentinel value at the beginning of the array that doesn't actually exist.
Autres résultats
Când dorim să obținem un enumerator pe acel bloc de elemente, obținem în esență un obiect care face referire la o valoare santinelă de la începutul array-ului, o valoare care nu există de fapt.
When we want to get an enumerator over that block of elements, we essentially get an object that references a sentinel value at the beginning of the array, a value that doesn't actually exist.
Acest lucru se întâmplă deoarece memoria pentru elementele array-ului nu este încă alocată.
This happens because the memory for the elements is not yet allocated.
Această logică este necesară atunci când mărimea array-ului este inadecvată.
This logic is needed when an array's size is inadequate.
Swift te lasă să faci downcasting în bucla array-ului, ceea ce în cazul acesta ar fi mult mai eficient.
Swift lets you downcast as part of the array loop, which in this case would be more efficient.
Metoda AfiseazaBucle() iterează toate elementele array-ului și le imprimă pe consolă.
The method PrintLoops() iterates all elements of the array and prints them on the console.
Acesta este similar cu CopyTo(), dar oferă noua referință a array-ului.
This is similar to CopyTo(), but it provides the new array reference.
Deoarece în exemplul de mai sus am adăugat și un Caine pe a doua poziție a array-ului, programul a generat o eroare atunci când am folosit bucla foreach sub forma de Pisica.
Because in the above example we also added a Dog on the second position of the array, the program crashed when we used the foreach loop in the form of Cat.
Array-ul inversat. Descriere Metoda reverse transpune elementele array-ului in ceea ce priveste pozitia, modificand array-ul, returnand o referinta la acel array.
Description The reverse method transposes the elements of the calling array object in place, mutating the array, and returning a reference to the array.
Cazul în care valoarea absolută a lui start este mai mare decât lungimea array-ului, i se va atribui automat valoarea 0.
If the absolute value of start is greater than the length of the array, it will begin from index 0.
Ca și în lumea reală, odată ce o clădire este construită după un plan ("instanțierea" array-ului - crearea unei copii după plan), nu putem adăuga sau elimina apartamente din ea.
As in real world, once a building is built after a blueprint ("instantiation" of an array - creation of a copy after the blueprint), we cannot add or remove apartments from it.
În acest moment valoarea variabilei pozitieCurenta devine negativă (deoarece prima poziție a array-ului este 0) și terminăm execuția metodei folosind operatorul return.
In this moment the value of the variable currentPosition becomes negative (as the first position of the array is 0) and we end the execution of the method using the operator return.
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.