Protected
examplesAdds an example to the list of examples and calculates its length.
The example to be added.
Promise that resolves when the example has been added and its length calculated.
Calculates the lengths of the examples.
Array of lengths of the examples.
Instance of LengthBasedExampleSelector.
Promise that resolves with an array of lengths of the examples.
Static
fromCreates a new instance of LengthBasedExampleSelector and adds a list of examples to it.
Array of examples to be added.
Input parameters for the LengthBasedExampleSelector.
Promise that resolves with a new instance of LengthBasedExampleSelector with the examples added.
A specialized example selector that selects examples based on their length, ensuring that the total length of the selected examples does not exceed a specified maximum length.
Example