Note: If only a single numeric parameter is passed to the Array constructor, it is assumed to specify the array's length property.
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.
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.
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.
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().
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().
The array type constructor is traversable, which means that there is a function
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.
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.
The constructor's array options are not included in this hash.
Las opciones de array del constructor no están incluidas en este hash.
Here we're initializing the state of products to an empty array in the constructor.
Aquí estamos inicializando el estado de los productos en una matriz vacía en el constructor.
Listing 87: Creating an empty array with a constructor
Listado 6-87: Creando un array vacío con un constructor
In Kotlin, there are two main ways to create an array: using the helper function arrayOf() or the constructor Array().
En Kotlin, hay dos maneras principales de crear un arreglo: usando la función de ayuda arrayOf() o el constructor Array().
The lifetime of a temporary object created when evaluating the default arguments of a default constructor used to initialize an element of an array ends before the next element of the array begins initialization.
El tiempo de vida de un objeto temporal creado al evaluar los argumentos predeterminados de un constructor por defecto utilizado para inicializar un elemento de una matriz finaliza antes de que el siguiente elemento de la matriz comience la inicialización.
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.