List.RangeList.Range
構文Syntax
List.Range(list as list, offset as number, optional count as nullable number) as list
バージョン情報About
オフセット list
で始まるリストのサブセットが返されます。Returns a subset of the list beginning at the offset list
. 省略可能なパラメーター offset
は、サブセット内の項目の最大数を設定します。An optional parameter, offset
, sets the maximum number of items in the subset.
例 1Example 1
1 から 10 の数のリストから、オフセット 6 で始まるサブセットを求めます。Find the subset starting at offset 6 of the list of numbers 1 through 10.
List.Range({1..10}, 6)
77 |
88 |
99 |
1010 |
例 2Example 2
1 から 10 の数のリストから、オフセット 6 で始まる長さが 2 のサブセットを求めます。Find the subset of length 2 from offset 6, from the list of numbers 1 through 10.
List.Range({1..10}, 6, 2)
77 |
88 |