mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-10 22:46:07 +00:00
build
This commit is contained in:
@@ -137,5 +137,9 @@ comments: true
|
||||
=== "Dart"
|
||||
|
||||
```dart title=""
|
||||
|
||||
/* 使用多种「基本数据类型」来初始化「数组」 */
|
||||
List<int> numbers = List.filled(5, 0);
|
||||
List<double> decimals = List.filled(5, 0.0);
|
||||
List<String> characters = List.filled(5, 'a');
|
||||
List<bool> booleans = List.filled(5, false);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user