这是数组赋值的红宝石是如何工作的。
例如,性质用一维数组赋值,2元谓词用2维数组赋值,等等。
For instance, properties are assigned by one-dimensional arrays, predicates of arity 2 by two-dimensional arrays, and so on.
第二,既然这个任务类是Runnable,为了防止DCE,必须把数组访问的结果赋值给state字段(以及覆盖的toString方法中需要使用的state)。
Second, given that this task class is a Runnable, the result of the array access needs to be assigned to the state field (and state needs to be used in an overriding toString method) to prevent DCE.
该切片所引用的数组分段可以通过将新的切片赋值给同一变量来更改。
The segment of the array that the slice references can be changed by assigning a new slice to the same variable.
对于初学者来说,“Hello World ”是每个字符8位的常规字符串,把它赋值给每个字符32位的数组是非法的。
Well, for starters, "Hello World" is a regular 8-bit-per-character string and assigning it to an array of 32-bits per character is invalid.
为什么没有一个变量赋值到一个数组中的红宝石产生预期的结果?
Why doesn't assigning a variable to an array yield expected results in Ruby?
如果相应语句为某个表达式赋值,请用一个可写的变量、属性或数组元素替换该表达式。
If the statement assigns a value to an expression, replace the expression with a single writable variable, property, or array element.
另一种相似的算法是在数组中制造出一个“断层”,然后为其中一边的所有元素赋值,就像“地震”发生时那样。
Another similar method involves making a "fracture" across the array and incrementing one side of it, as if an earthquake had occurred.
数组变量持有一个指针,它指向构成数组元素的数据及秩和长度信息,赋值语句仅复制此指针。
An array variable holds a pointer to the data constituting the array elements and the rank and length information, and an assignment copies only this pointer.
可以在程序中添加错误处理代码,来确保数组在赋值前是相容的。
You can add error handling to your code to make sure that the arrays are compatible before attempting an assignment.
在有穷论域下,可以用n维数组来表示对n元谓词的赋值。
In a finite universe of discourse, one can represent the assignments of predicates with arity n by n-dimensional arrays.
返回一个指定的已赋值的模板变量的值。如果不指定参数,则返回一个包含所有已赋值模板变量的值的数组。
This returns the given assigned variable value. If no parameter is given, an array of all assigned variables is returned.
使用标准赋值语句将源数组赋给目标数组。
Use a standard assignment statement to assign the source array to the destination array.
使用标准赋值语句将源数组赋给目标数组。
Use a standard assignment statement to assign the source array to the destination array.
应用推荐