该帮助的版本不再更新,请参见https://www.jmp.com/support/help/zh-cn/15.2 获取最新的版本.


List Operators describes the list operators and their syntax.
As List(matrix)
{list} = {list}
{list} += value
{list} -= {list}
注意: 
JMP does not have pre-increment or pre-decrement operators. Instead, use the Add To() operator, which is (+=), or the Subtract To() operator, which is (-=).
Concat To(list1, list2, ...)
Concat(list1, list2, ...);
Insert Into(list, x, <i>)
Inserts a new item (x) into the list at the given position (i). If i is not given, the item is added to the end of the list. This function does change the original list.
list = Insert(list, x, <i>)
Returns a copy of the list with a new item (x) inserted into the list at the given position (i). If i is not given, the item is added to the end of the list. This function does not change the original list.
Returns true (1) if arg is a classical list (in other words, one that would result from the construction by List(items) or {items}) and returns false (0) otherwise. An empty list is still a list, so IsList({ }) returns true. If miss=., then IsList(miss) returns false, not missing.
List(a, b, c)
{a, b, c}
Returns the number of elements in the list specified. Can be assigned to a variable.
Remove From(list, <i>, <n>)
Deletes n items from the list, starting from the indicated position (i). If n is omitted, the item at i is deleted. If n and i are omitted, the item at the end is removed. This function does change the original list.
Remove(list, <i>, <n>)
Returns a copy of the list with the n items deleted, starting from the indicated position (i). If n is omitted, the item at i is deleted. If n and i are omitted, the item at the end is removed. This function does not change the original list.
Reverses the order of the items in the list. This function does change the original list.
Returns a copy of the list with the items in reverse order. This function does not change the original list.
Shift Into(list, <n>)
Shifts n items from the front of the list to the end of the list. If n is omitted, the first item is moved to the end of the list. This function does change the original list.
Shift(list, <n>)
Returns a copy of the list with n items shifted from the front of the list to the end of the list. If n is omitted, the first item is moved to the end of the list. This function does not change the original list.
Returns a copy of the list sorted in ascending order. This function does not change the original list.
Returns a copy of the list sorted in descending order. This function does not change the original list.
Sorts the list in ascending order. This function does change the original list.
Returns a copy of the list sorted in ascending order. This function does not change the original list.
list[i]
x = list[i]
list[i] = value
a[b, c]
Subscript(a, b, c)
Subscripts for lists extract the ith item from the list. Subscripts can in turn be lists or matrices.
Substitute(list, pattExpr1, replExpr1, ...)
Substitute Into(list, pattExpr1, replExpr1, ...)