10 lines
219 B
Dart
10 lines
219 B
Dart
|
/// Flattens [inputs] and concatenates the elements.
|
||
|
List<int> concat(List<List<int>> inputs) {
|
||
|
final tmp = List<int>.empty(growable: true);
|
||
|
for (final input in inputs) {
|
||
|
tmp.addAll(input);
|
||
|
}
|
||
|
|
||
|
return tmp;
|
||
|
}
|