Si m fuese el constructor de tipo Array, cada paso del pliegue podría devolver cero o más resultados, y el pliegue continuaría con el siguiente paso independientemente para cada resultado.
If we picked m to be the Array type constructor, then every step of the fold would be allowed to return zero or more results, and the fold would proceed to the next step independently for each result.
En casos cuando solo hay un argumento pasado al constructor del Array, y que el argumento es un Número, el contructor devolverá un array disperso con la propiedad length establecida al valor del argumento.
In cases when there is only one argument passed to the Array constructor and when that argument is a Number, the constructor will return a new sparse array with the length property set to the value of the argument.
Mientras que no sea estrictamente una asignación por referencia, las expresiones creadas con el constructor de lenguaje array() también pueden comportarse como tales prefijando & al elemento del array a añadir.
? > While not being strictly an assignment by reference, expressions created with the language construct array() can also behave as such by prefixing & to the array element to add.
Esto puede ocurrir cuando se intenta crear un array con una longitud inválida con el constructor Array, o al pasar valores inválidos a los métodos numéricos Number.toExponential(), Number.toFixed() o Number.toPrecision().
This can be encountered when attempting to create an array of an illegal length with the Array constructor, or when passing bad values to the numeric methods Number.toExponential(), Number.toFixed() or Number.toPrecision().
Las opciones de array del constructor no están incluidas en este hash.
Nota: si solo se pasa un parámetro numérico al constructor Array, se da por hecho que especifica la propiedad length de la matriz.
Note: If only a single numeric parameter is passed to the Array constructor, it is assumed to specify the array's length property.
En Kotlin, hay dos maneras principales de crear un arreglo: usando la función de ayuda arrayOf() o el constructor Array().
In Kotlin, there are two main ways to create an array: using the helper function arrayOf() or the constructor Array().
Un espacio va antes del corchete de apertura de un constructor de conjuntos en algunas situaciones - esos corchetes deberían tratarse como paréntesis, a diferencia de los corchetes usados en la indexación de un array.
A space goes before the opening bracket of a set constructor in some situations - those brackets should be treated like parentheses, unlike the brackets used in array indexing.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.