mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-02 10:13:00 +08:00
feat: modify some Dart codes and add Dart code blocks to the docs (#543)
This commit is contained in:
@@ -95,7 +95,9 @@
|
||||
=== "Dart"
|
||||
|
||||
```dart title="array.dart"
|
||||
|
||||
/* 初始化数组 */
|
||||
List<int> arr = List.filled(5, 0); // [0, 0, 0, 0, 0]
|
||||
List<int> nums = [1, 3, 2, 5, 4];
|
||||
```
|
||||
|
||||
## 数组优点
|
||||
|
||||
Reference in New Issue
Block a user