إشعار
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تسجيل الدخول أو تغيير الدلائل.
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تغيير الدلائل.
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.
Example 1
Find the intial values in the list {3, 4, 5, -1, 7, 8, 2} that are greater than 0.
Usage
List.FirstN({3, 4, 5, -1, 7, 8, 2}, each _ > 0)
Output
{3, 4, 5}