blob: d44ac3f4457329c3629d3ff095c91e390944ca0c [file] [log] [blame]
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/// Stdin helper library
/// @author sgrekhov@unipro.ru
library stdin_utils;
List<T> flattenList<T>(List list) =>
list.expand((e) => e is List ? e : [e]).cast<T>().toList();