pickColumns<T> function

List<T> pickColumns<T>(
  1. List<T> row,
  2. List<int> columns
)

Implementation

List<T> pickColumns<T>(List<T> row, List<int> columns) =>
    [for (final c in columns) row[c]];