List Functions
Functions for creating, manipulating, and transforming lists.
- List.AccumulateAccumulates a result by applying a function to each item in a list, starting from an initial seed value.
- List.AllTrueReturns true if all values in the list evaluate to true.
- List.AlternateReturns a list with items selected at alternating intervals based on count, repeatInterval, and offset.
- List.AnyTrueReturns true if any value in the list evaluates to true.
- List.AverageReturns the average of the values in a list.
- List.BufferBuffers a list in memory, forcing immediate evaluation and preventing repeated re-evaluation of the source.
- List.CombineMerges multiple lists into a single list.
- List.ConformToPageReaderConforms a list to a page reader table format. Intended for internal use only.
- List.ContainsReturns true if a list contains a specified value.
- List.ContainsAllReturns true if a list contains all of the values in another list.
- List.ContainsAnyReturns true if a list contains any of the values in another list.
- List.CountReturns the number of items in a list.
- List.CovarianceReturns the sample covariance of two lists of numbers.
- List.DatesGenerates a list of date values starting from a given date, with a specified count and step duration.
- List.DateTimesGenerates a list of datetime values starting from a given datetime, with a specified count and step duration.
- List.DateTimeZonesGenerates a list of datetimezone values starting from a given datetimezone, with a specified count and step duration.
- List.DifferenceReturns items from the first list that do not appear in the second list.
- List.DistinctReturns a list with duplicate values removed.
- List.DurationsGenerates a list of duration values starting from a given duration, with a specified count and step.
- List.FindTextReturns all items in the list that contain the given text string. Items must be text values; comparison is case-insensitive.
- List.FirstReturns the first item in a list, or a default value if the list is empty.
- List.FirstNReturns the first N items from a list, or items from the start of the list while a condition is true.
- List.GenerateGenerates a list of values using an initial value, a condition, a next function, and an optional selector.
- List.InsertRangeInserts a list of values into a list at a specified index position.
- List.IntersectReturns the intersection of a list of lists, containing only items that appear in every list.
- List.IsDistinctReturns true if the list contains no duplicate values.
- List.IsEmptyReturns true if the list contains no elements.
- List.LastReturns the last item in a list, or a default value if the list is empty.
- List.LastNReturns the last N items from a list, or items at the end of the list that satisfy a condition.
- List.MatchesAllReturns true if the condition function returns true for every item in the list.
- List.MatchesAnyReturns true if the condition function returns true for at least one item in the list.
- List.MaxReturns the maximum value from a list.
- List.MaxNReturns the N largest values from a list, or values meeting a condition, in descending order.
- List.MedianReturns the median value of a list.
- List.MinReturns the minimum value from a list.
- List.MinNReturns the N smallest values from a list, or values meeting a condition, in ascending order.
- List.ModeReturns the most frequently occurring value in the list. If there is a tie, returns the first mode encountered.
- List.ModesReturns all values that appear with the highest frequency in the list (all modes when there is a tie).
- List.NonNullCountReturns the count of non-null values in the list.
- List.NumbersGenerates a list of numbers starting from a given value, with a specified count and optional increment.
- List.PercentileReturns the value at the specified percentile(s) in the list. Percentile is expressed as a number from 0 to 1.
- List.PositionOfReturns the zero-based index of the first (or specified) occurrence of a value in a list. Returns -1 if the value is not found.
- List.PositionOfAnyReturns the position of the first item in a list that matches any value from a second list.
- List.PositionsReturns a list of zero-based index positions for all elements in the given list.
- List.ProductReturns the product of all numbers in a list.
- List.RandomReturns a list of random numbers between 0 and 1, with an optional seed for reproducibility.
- List.RangeReturns a subset of items from a list starting at a given offset.
- List.RemoveFirstNRemoves the first N items from a list, or items from the start while a condition is true.
- List.RemoveItemsRemoves all occurrences of specified values from a list.
- List.RemoveLastNRemoves the last N items from a list, or items from the end while a condition is true.
- List.RemoveMatchingItemsRemoves all occurrences of items found in the second list from the first list.
- List.RemoveNullsRemoves all null values from a list, returning only non-null items.
- List.RemoveRangeRemoves a specified number of items from a list starting at a given index position.
- List.RepeatReturns a list created by repeating the given list a specified number of times.
- List.ReplaceMatchingItemsReplaces occurrences of specified values in a list with replacement values, given as a list of {old, new} pairs.
- List.ReplaceRangeReplaces a specified number of items in a list starting at a given index with items from a replacement list.
- List.ReplaceValueReplaces occurrences of a specified value in a list with a new value, using a replacer function to perform the substitution.
- List.ReverseReturns a new list with the elements in reverse order.
- List.SelectReturns items from a list that match a condition.
- List.SingleReturns the single element of a list. Throws an error if the list has zero elements or more than one element.
- List.SingleOrDefaultReturns the single element of a list, or a default value if the list is empty. Throws an error if the list has more than one element.
- List.SkipSkips the first N items of a list (or items while a condition is true) and returns the remaining items.
- List.SortSorts the items in a list according to the specified criteria.
- List.SplitSplits a list into a list of sub-lists, each of a specified maximum size.
- List.StandardDeviationReturns the sample standard deviation of the values in the list.
- List.SumReturns the sum of all items in a list.
- List.TimesGenerates a list of time values starting from a given time, with a specified count and step duration.
- List.TransformApplies a function to each item in a list and returns the results.
- List.TransformManyProjects each element of a list to a collection, then applies a result transformation to each (original element, projected element) pair. Similar to SelectMany / flatMap.
- List.UnionReturns the union of a list of lists, containing all distinct items from all lists combined.
- List.ZipTransposes a list of lists, combining the Nth elements of each list into new inner lists.