ListHelper
Helper functions for working with lists.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ListHelper.type
Members list
Value members
Concrete methods
Merge and dedup two sorted lists up to the specified limit. The input lists must already be sorted and should not contain duplicate values.
Merge and dedup two sorted lists up to the specified limit. The input lists must already be sorted and should not contain duplicate values.
Value parameters
- limit
-
Maximum number of items in the resulting list.
- v1
-
A sorted list to merge.
- v2
-
A sorted list to merge.
Attributes
- Returns
-
Sorted list with a max size of
limit
.
Merge and dedup two sorted lists up to the specified limit. The input lists must already be sorted and should not contain duplicate values.
Merge and dedup two sorted lists up to the specified limit. The input lists must already be sorted and should not contain duplicate values.
Value parameters
- comparator
-
Comparator to use for determining the order of elements.
- limit
-
Maximum number of items in the resulting list.
- v1
-
A sorted list to merge.
- v2
-
A sorted list to merge.
Attributes
- Returns
-
Sorted list with a max size of
limit
.
Merge and dedup two sorted lists up to the specified limit. The input lists must already be sorted and should not contain duplicate values.
Merge and dedup two sorted lists up to the specified limit. The input lists must already be sorted and should not contain duplicate values.
Value parameters
- aggrF
-
Aggregation function to use if duplicate values are encountered. The user should ensure that the aggregation function does not influence the order of the elements.
- comparator
-
Comparator to use for determining the order of elements.
- limit
-
Maximum number of items in the resulting list.
- v1
-
A sorted list to merge.
- v2
-
A sorted list to merge.
Attributes
- Returns
-
Sorted list with a max size of
limit
.
Merge and dedup sorted lists up to the specified limit. The input lists must already be sorted and should not contain duplicate values.
Merge and dedup sorted lists up to the specified limit. The input lists must already be sorted and should not contain duplicate values.
Value parameters
- limit
-
Maximum number of items in the resulting list.
- vs
-
A list of sorted lists to merge.
Attributes
- Returns
-
Sorted list with a max size of
limit
.
Merge and dedup sorted lists up to the specified limit. The input lists must already be sorted and should not contain duplicate values.
Merge and dedup sorted lists up to the specified limit. The input lists must already be sorted and should not contain duplicate values.
Value parameters
- comparator
-
Comparator to use for determining the order of elements.
- limit
-
Maximum number of items in the resulting list.
- vs
-
A list of sorted lists to merge.
Attributes
- Returns
-
Sorted list with a max size of
limit
.
Merge and dedup sorted lists up to the specified limit. The input lists must already be sorted and should not contain duplicate values.
Merge and dedup sorted lists up to the specified limit. The input lists must already be sorted and should not contain duplicate values.
Value parameters
- aggrF
-
Aggregation function to use if duplicate values are encountered. The user should ensure that the aggregation function does not influence the order of the elements.
- comparator
-
Comparator to use for determining the order of elements.
- limit
-
Maximum number of items in the resulting list.
- vs
-
A list of sorted lists to merge.
Attributes
- Returns
-
Sorted list with a max size of
limit
.