Returns a new set with elements at the specified indices.
Set<E> slice(int start, [int? end]) { final list = toList(); end ??= list.length; return Set.from(list.sublist(start, end)); }