Returns the k least elements of given set.
List<num> bottomElements (int k) { var copy = toList(growable: false); copy.sort(); return copy.sublist(0, k); }