add sort
This commit is contained in:
parent
981bc03519
commit
2d40ca9d10
383
dart-js/out.js
383
dart-js/out.js
File diff suppressed because one or more lines are too long
@ -136,6 +136,14 @@ void main() {
|
|||||||
|
|
||||||
List<double> double_list = [1.0, 2.0, 3.0, 5.0, 5.002];
|
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
|
// range in list
|
||||||
print(double_list.getRange(0, 2).toList());
|
print(double_list.getRange(0, 2).toList());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user