Omdat een string een array is, kan je het programma laten herhalen voor elke letter van een string net zoals bij een array
Since a string is an array, a program can iterate through each character element just like an array
Deze declaratie kan het type van de verwachte waarde (geheel getal, array, string...) verduidelijken, een standaardwaarde hebben en het geeft vooral de naam van de variabele aan waarin de te gebruiken parameter is opgeslagen in de functiecode.
This declaration may specify the type of value expected (integer, table, character string...), a default value, and most importantly the name of the variable where the usable parameter is stored within the function's code.
Er zijn 2 string soorten: string (array van chars) en String (object).
Een array kun je beschouwen als een lijst met een index van string-waarden.
An array can be seen as a list with a string-valued index.
De declaratie van de Array-variable van het type 'String' verhindert dat.
The declaration of the Array-variable of the type 'String' prevents this.
Voegt de elementen van een array (reeks) samen in één string.
Append the elements in an array into a string.
Waarden uit de array kun je achterhalen met het set commando en variabele substitutie; zoals te zien is in het vorige voorbeeld, is een string-waarde index gescheiden door haakjes.
Array values can be retrieved using the set command and variable substitution; as shown in the previous example, the string-valued index is delimited by parenthesis.
Veranderingen aan een string of getal in de ene array zal de andere array niet beinvloeden.
Changes to the string, number or boolean in one array does not affect the other array.
İçerik hassas veya uygunsuz olabilir.
Buradaki örnekler sizlere yalnızca aradığınız sözcük ve ifadeyi çevirmede yardımcı olmak için verilmiştir. Örnekler bizim tarafımızdan seçilmiş veya teyit edilmiş değildir. Mevcut örnekler uygunsuz bir dil içeriyor olabilir. Potansiyel olarak hassas, uygunsuz veya günlük konuşma dili çeviriler genellikle kırmızı ya da turuncu renkle işaretlenir.