sample method

  1. @override
Iterable<String> sample(
  1. Iterable<String> entries
)
inherited

Samples a collection of items

  • entries: The list of items to sample

Returns a new collection sampled from the original

Implementation

@override
Iterable<String> sample(Iterable<String> entries) {
  return sampleEntries(entries, (entries.length * _factor).truncate());
}