List.FirstNList.FirstN
構文Syntax
List.FirstN(list as list, countOrCondition as any) as any
バージョン情報About
- 数値を指定した場合、その数までの項目が返されます。If a number is specified, up to that many items are returned.
- 数値が指定されている場合は、最初に条件を満たすすべての項目が返されます。If a condition is specified, all items are returned that initially meet the condition. 項目が条件を満たさなくなると、それ以上の項目は考慮されません。Once an item fails the condition, no further items are considered.
例 1Example 1
リスト {3, 4, 5, -1, 7, 8, 2} 内の、0 を超える初期値を求めます。Find the intial values in the list {3, 4, 5, -1, 7, 8, 2} that are greater than 0.
List.FirstN({3, 4, 5, -1, 7, 8, 2}, each _ > 0)
33 |
44 |
55 |