bottom method

List<T> bottom(
  1. int n
)

Returns the n smallest elements in ascending order.

Implementation

List<T> bottom(int n) => (toList()..sort()).take(n).toList();