pieceIndices method

List<int> pieceIndices(
  1. List<String> symbols
)

Implementation

List<int> pieceIndices(List<String> symbols) =>
    symbols.map((p) => pieceIndex(p)).where((p) => p >= 0).toList();