This commit is contained in:
shenjack 2024-08-14 21:25:22 +08:00
parent 981bc03519
commit 2d40ca9d10
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 380 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

@ -136,6 +136,14 @@ void main() {
List<double> double_list = [1.0, 2.0, 3.0, 5.0, 5.002];
double_list.sort();
List<String> string_list = ["a", "b", "c"];
string_list.sort();
print(string_list);
// range in list
print(double_list.getRange(0, 2).toList());