omemo_dart/lib/src/helpers.dart

10 lines
219 B
Dart
Raw Normal View History

/// 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;
}