回答編集履歴
1
修正
test
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
```Dart
|
2
2
|
|
3
3
|
to2Dim(list,numOfElems){
|
4
|
+
|
5
|
+
if(list.isEmpty){
|
6
|
+
|
7
|
+
return list;
|
8
|
+
|
9
|
+
}
|
4
10
|
|
5
11
|
return [list.take(numOfElems).toList()]..addAll(to2Dim(list.skip(numOfElems),numOfElems));
|
6
12
|
|