API Change Request: add List.sortRange and List.shuffleRange #40841
Labels
area-pkg
Used for miscellaneous pkg/ packages not associated with specific area- teams.
pkg-collection-helpers
type-enhancement
A request for a change that isn't a bug
The
List
interface currently has several methods that operate on a range instead of the whole list such asfillRange
,setRange
,getRange
,removeRange
, andreplaceRange
. However, it doesn't havesortRange
andshuffleRange
. This makes it less efficient to use in some cases.For example, in a coding competition like Google Code Jam, it's more efficient to instantiate a list once and reuse it for all test cases instead of instantiating it for every test case. This is only achievable if
sortRange
andshuffleRange
are added.Dart SDK version: 2.7.0
The text was updated successfully, but these errors were encountered: