Erlang中的模式匹配还会处理各个语句的执行流,以及从复合数据类型(元组、数组)中提取出值。
Pattern matching in Erlang also handles the execution flow of individual statements, and extracts the individual vales from compound data types (tuples, arrays).
要将属性定义为数组类型,只需将maximum属性的缺省值从1更改为n,如图3所示。
To define attributes as an array type, you just change the default value of the Maximum attribute from 1 to n, as Figure 3 shows.
不要使用列表或数组作为参数或返回值(可以使用数组,不过必须使用稍后在本文中所描述的一种特定数据类型)。
Do not use lists or arrays as parameters or return values (arrays are possible, but you must use a special data type described later in this article).
可以以值数组来提供变量,其中每个值指明要阻止的一种特定警告类型。
You can supply the variable as an array of values, each of which indicates a specific type of warning to suppress.
正如我们接下来看到的代码那样,花括号中的数组值就需要对数组进行是否创建和类型的推断。
As you can see below, the presence of the array contents in brackets is enough to both infer that an array is being created and what type that would be.
数组的元素类型和值的类型必须相同。
The element type of the array and the type of the value must be of the same type.
这里提供的值比较复杂,但TODOItems的使用实际与单一值注释类型相符,只是这里的单一值是数组而已。
The value supplied here is fairly complex, but the use of TODOItems actually matches the single-value annotation style — except that the single value is an array.
该枚举类型的values方法返回这种类型的不同值的有序数组。
The values method of the enumerated type returns an ordered array of the different values of that type.
用于数组类型的组件的值可以包含0个或1个元素,用于集合和树类型的组件的值可以包含0到多个元素。
Values for array type components can contain zero or one element, and values for set and tree type components can have zero or more elements.
类型设置为append,值为将附加到数组的内容。
The type is set to append, and the value is what will be appended to the array.
JSON支持除对象之外的各种数据类型:字符串、空值、数字(整数或实数)、布尔值和数组(包含在方括号中的逗号分隔的值序列)。
JSON data supports various data types besides objects: strings, null values, Numbers (integer or real), Boolean values, and arrays (comma-separated sequences of values enclosed in square brackets).
如果两个数组的元素都是值类型元素,则元素的数据类型必须完全相同。
If both arrays have value type elements, the element data types must be exactly the same.
定义数据的最小单位。一个数据项类型可以表示一个值或一个取单值或多值的数组。
The smallest unit of defined data. A data item type can represent a single value or an array of one or more values.
在这种情况下,该属性的指定值必须是数组或指针类型。
In this case, the value specified for the property must be an array or a pointer type.
例如,提供数组数据类型的程序设计语言也提供一种操作符使用户能读出数据元素值。
For example, languages that provide for the array data type also provide an operator that allows the uses to read out the value of an array element.
其默认值是参数数组元素类型的空一维数组。
Its default value is an empty one-dimensional array of the parameter array's element type.
一个数据项类型可以表示一个值或一个取单值或多值的数组。
A data item type can represent a single value or an array of one or more values.
这些过程可扫描数组中的所有数据值,以确定用于结果集中各列的相应SQLServer数据类型和数据长度。
These procedures scan all the data values in the array to determine the appropriate SQL Server data types and data lengths to use for each column in the result set.
一个标记值,它是与其他的数据类型常数结合在一起使用的。它指明了包含其它数据类型的数组。
AdArray 0x2000 a flag value combined with another data type constant. Indicates an array of that other data type.
一个标记值,它是与其他的数据类型常数结合在一起使用的。它指明了包含其它数据类型的数组。
AdArray 0x2000 a flag value combined with another data type constant. Indicates an array of that other data type.
应用推荐