Nota
Capaian ke halaman ini memerlukan kebenaran. Anda boleh cuba mendaftar masuk atau menukar direktori.
Capaian ke halaman ini memerlukan kebenaran. Anda boleh cuba menukar direktori.
Syntax
List.Skip(list as list, optional countOrCondition as any) as list
About
Returns a list that skips the first element of list list. If list is an empty list an empty list is returned. This function takes an optional parameter, countOrCondition, to support skipping multiple values as listed below.
- If a number is specified, up to that many items are skipped.
- If a condition is specified, any consecutive matching items at the start of
listare skipped. - If this parameter is null, the default behavior is observed.
Example 1
Skip the first three numbers in the list.
Usage
List.Skip({1, 2, 3, 4, 5}, 3)
Output
{4, 5}
Example 2
Skip the leading numbers in the list as long as they're greater than 3.
Usage
List.Skip({5, 4, 2, 6, 1}, each _ > 3)
Output
{2, 6, 1}